Skip to content

Report stack usage#118

Merged
adamgreig merged 6 commits intomainfrom
report-stack-usage
Feb 15, 2026
Merged

Report stack usage#118
adamgreig merged 6 commits intomainfrom
report-stack-usage

Conversation

@jonathanpallant
Copy link
Copy Markdown
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
Comment thread aarch32-cpu/src/stacks.rs Outdated
thejpster and others added 2 commits February 15, 2026 14:30
The function has a better name and the comments hopefully make more
sense now.
Clean up stack.rs based on review comments.
@adamgreig adamgreig enabled auto-merge February 15, 2026 14:40
@adamgreig adamgreig added this pull request to the merge queue Feb 15, 2026
Merged via the queue into main with commit 13ed901 Feb 15, 2026
43 of 50 checks passed
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.

3 participants