Skip to content

Rewrite rust_start in Rust #3406

Closed
Closed
@brson

Description

@brson

Upcalls are slowly being converted to rust. We'll want to convert rust_start (the runtime entry point) as well, and I think we're almost to the point where we can do this. Some difficulties:

  • It will run on a big native stack, so the compiler will have to set up the stack limit before main
  • Any call that requires the task pointer will fail hard. In particular this means we can't do any managed allocations

We can start by just immediately calling into the existing C++ rust_start function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-codegenArea: Code generationA-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions