Re:The Power of 10: Rules for Developing Safety-Critical Cod...
by hedora on Wednesday June 28, 2023 @11:45PM
(#36516076)
I wish there was a “this is tail recursive; if you cannot turn it into a loop, fail to compile” compiler annotation for C++/rust.
Re:The Power of 10: Rules for Developing Safety-Critical Cod...
by Svetlitski on Wednesday June 28, 2023 @11:56PM
(#36516132)
Clang provides the "musttail" attribute for C and C++:
https://clang.llvm.org/docs/AttributeReference.html#musttail
It is hard to determine the max value for time-to-die counter if your stack footprint is hard to estimate due to nested structs/enums/unions/generics/optimizations.