-
Notifications
You must be signed in to change notification settings - Fork 6
feature - panic strategy and allocator hooks for freestanding targets #689
Copy link
Copy link
Open
Labels
featureNew feature or requestNew feature or requestincan compilerSuggestions, features, or bugs related to the Compiler (frontend/backend/codegen)Suggestions, features, or bugs related to the Compiler (frontend/backend/codegen)runtime / core cratesSuggestions, features, or bugs related to the `incan-core`, `incan-stdlib`, 'incan-derive` cratesSuggestions, features, or bugs related to the `incan-core`, `incan-stdlib`, 'incan-derive` cratestoolingSuggestions, features, or bugs related to the Tooling (CLI/formatter/test runner)Suggestions, features, or bugs related to the Tooling (CLI/formatter/test runner)
Milestone
Metadata
Metadata
Assignees
Labels
featureNew feature or requestNew feature or requestincan compilerSuggestions, features, or bugs related to the Compiler (frontend/backend/codegen)Suggestions, features, or bugs related to the Compiler (frontend/backend/codegen)runtime / core cratesSuggestions, features, or bugs related to the `incan-core`, `incan-stdlib`, 'incan-derive` cratesSuggestions, features, or bugs related to the `incan-core`, `incan-stdlib`, 'incan-derive` cratestoolingSuggestions, features, or bugs related to the Tooling (CLI/formatter/test runner)Suggestions, features, or bugs related to the Tooling (CLI/formatter/test runner)
Type
Fields
Give feedbackNo fields configured for Feature.
Area
Problem statement
Freestanding targets cannot assume the ordinary hosted panic path or a default allocator. A restricted artifact may need
panic = abort, a custom panic halt/report hook, no allocator, a provided allocator, or an allocator initialized by target-specific code. If this remains implicit, no-std builds and kernel-facing work will fail late or depend on backend accidents.#686 needs minimal panic and allocator handling for a smoke artifact, but 0.8 also needs a dedicated hook model so target profiles, package metadata, runtime layers, and diagnostics agree on what a program requires.
Proposed solution
Add experimental compiler/runtime hooks for panic strategy and allocator requirements under freestanding target profiles.
The first slice should define and plumb:
Alternatives considered
Scope / acceptance criteria