From feca35c7c12b3ad2fb8cd5c4e48003da2b283b8b Mon Sep 17 00:00:00 2001 From: Ian McIntyre Date: Thu, 22 Feb 2024 16:55:34 -0500 Subject: Add environment variable overrides for stack, heap 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. --- CHANGELOG.md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index aa37d8c..17b4417 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,14 @@ ## [Unreleased] +Add configurations to `RuntimeBuilder`: + +- `stack_size_env_override` +- `heap_size_env_override` + +Use these methods to define environment variables that can override the +stack / heap sizes. + ## [0.1.3] 2023-10-01 Ensure that the runtime supports the GNU linker, `ld`. -- cgit v1.2.3