4 ms·
C gives you better options for static analysis of worst case stack usage, e.g. https://github.com/PeterMcKinnis/WorstCaseStack https://github.com/PeterMcKinnis/
by mrob 8y ago
C gives you better options for static analysis of worst case stack usage, e.g. https://github.com/PeterMcKinnis/WorstCaseStack https://github.com/PeterMcKinnis/WorstCaseStack
Proprietary software for this is also available with superior UI and features, and I expect people serious about high-reliability embedded systems already use it.
Rust Nightly does have limited support for printing stack usage by function with -Z emit-stack-sizes, but I could not find anything for analysis of worst case stack usage in whole programs.
- gpm 8y agoPresumably you lose static analysis benefits as soon as you are mixing languages though?