Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add environment variable overrides for stack, heap #13

Merged
merged 1 commit into from
Apr 5, 2024

Conversation

mciantyre
Copy link
Member

If you define a runtime, you can call stack_size_env_override to define an optional environment variable checked by the runtime builder. Same goes for the heap. A user can set these environment variables to override the runtime's stack / heap size.

There's no default environment variable for either memory region. The package that defines the runtime needs to opt-in to this feature.

If you define a runtime, you can call `stack_size_env_override` to
define an optional environment variable checked by the runtime builder.
Same goes for the heap. A user can set these environment variables to
override the runtime's stack / heap size. You can use this package's
examples to try it out; see the updated build script.

There's no default environment variable for either memory region. The
package that defines the runtime needs to opt-in to this feature.
@mciantyre mciantyre merged commit feca35c into imxrt-rs:main Apr 5, 2024
7 checks passed
@mciantyre mciantyre deleted the env-overrides branch April 5, 2024 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants