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

Set Memory Limit through API/SDK #152

Open
sjudson opened this issue May 1, 2024 · 0 comments
Open

Set Memory Limit through API/SDK #152

sjudson opened this issue May 1, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sjudson
Copy link
Contributor

sjudson commented May 1, 2024

#145 adds support for dynamically setting the memory limit through a macro exposed by nexus-rt.

#146 adds a low-level programmatic API, with an eye longer term towards a stable SDK (#148).

Longer term, it likely makes sense for the API/SDK to also (or even just exclusively) support programmatically adjusting the memory limit.

Doing this likely has a few moving pieces: we ideally want to set the memory limit by just emitting the linker script dynamically, rather than overwriting the stack pointer on start as #145 did. We'd also then need to support dynamic compilation or some sort of rewriting pass over the already compiled NVM assembly (or both), since at present the API only consumes an already compiled program.

@sjudson sjudson added the enhancement New feature or request label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant