-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-codegenArea: Code generationArea: Code generationA-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.
Milestone
Description
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
Labels
A-codegenArea: Code generationArea: Code generationA-runtimeArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsArea: std's runtime and "pre-main" init for handling backtraces, unwinds, stack overflowsC-cleanupCategory: PRs that clean code up or issues documenting cleanup.Category: PRs that clean code up or issues documenting cleanup.