Under which circumstances MATLAB Coder may create statically allocated variables in the generated code?
Mostra commenti meno recenti
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?
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Automated Fixed-Point Conversion in MATLAB in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!