Under which circumstances MATLAB Coder may create statically allocated variables in the generated code?
显示 更早的评论
It is sought to generate code using MATLAB Coder that does not generate statically allocated data. It is mentioned in the documentation page,
the following:
"If you do not specify reentrant code, MATLAB® Coder™ generates code that uses statically allocated memory for:
- Function variables that are too large to fit on the stack
- Global variables
- Persistent variables"
However, when generating code from a custom MATLAB code that does not meet the latter requirements, the generated C/C++ code still contains statically allocated data.
Under which circumstances MATLAB Coder may create statically allocated variables in the generated code?
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Automated Fixed-Point Conversion in MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!