3 ms·
Ada fits the bill well here, with zero-footprint runtimes available and also a tool for statically determining the stack size at compile-time: https://www.adaco
by _vdpp 4y ago
Ada fits the bill well here, with zero-footprint runtimes available and also a tool for statically determining the stack size at compile-time: https://www.adacore.com/gnatpro/toolsuite/gnatstack https://www.adacore.com/gnatpro/toolsuite/gnatstack
- azinman2 4y agoIs there an OSS version of such a tool? I’d love to see Ada get “modernized” where the syntax could fundamentally change but the ideas are similar. Being able to explicitly say the range of values is pretty cool, for example.
- _vdpp 4y agoOne of the more experienced embedded Ada devs out there wrote this: https://github.com/simonjwright/stack_usage https://github.com/simonjwright/stack_usage I’m not sure if it would meet your requirements or not.
- _vdpp 4y agoAda syntax takes a little while to get used to, but replace {} with begin/end and it otherwise feels like any other procedural language out there. This is one of the better intros: http://cowlark.com/2014-04-27-ada/index.html http://cowlark.com/2014-04-27-ada/index.html One of my favorite lesser-advertised features is the ability to return arbitrary-length arrays or sum types from functions without heap allocation due to the use of a secondary stack.