emit-stack-sizes
not reporting correct stack size
#108741
Labels
A-CLI
Area: Command-line interface (CLI) to the compiler
A-LLVM
Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues.
C-bug
Category: This is a bug.
O-AVR
Target: AVR processors (ATtiny, ATmega, etc.)
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I have a library and and app using the library, and compiling for AVR target using
avr-gcc
. It's seem to be overflowing the device so I want to check stack usage. I tried building my library which is pure rust and got:which makes no sense as the function works with 64-byte numbers, and does a few allocations. I turned to
cargo-call-stack
and as it doesn't support AVR either (japaric/cargo-call-stack#92), I chose an ARM target to viewcall-stack
output:so according to
cargo-call-stack
which usesemit-stack-sizes
under the hood, the same functiondouble_assign_mod
uses 1424 bytes, which makes more sense.related:
rustc --version --verbose
:@japaric
The text was updated successfully, but these errors were encountered: