Skip to content

Report stack usage#118

Open
jonathanpallant wants to merge 4 commits intomainfrom
report-stack-usage
Open

Report stack usage#118
jonathanpallant wants to merge 4 commits intomainfrom
report-stack-usage

Conversation

@jonathanpallant
Copy link
Contributor

Add some helper functions for checking stack usage, and add stack usage reports to the examples. I also took the opportunity to massively reduce the stack sizes, now we know exactly how much space we need.

The report goes to stderr because it may change as Rust versions change, and so we don't want it to appear in the reference outputs.

This relies on QEMU initialising RAM with 0x0, which it does. Users on real hardware would need to paint their stack for this to work.

@jonathanpallant jonathanpallant changed the title Draft: Report stack usage Report stack usage Feb 12, 2026
Makes it Rust 1.83 compatible
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.

1 participant