optimize global data access parameter changes to none while building
1 次查看(过去 30 天)
显示 更早的评论
In generating the code, the "optimize global data access" parameter if manually changed to "Minimize global data access" itself changes to none while building. What are the pre requisites for code to avoid global data and use local variables for declarations inside a function
0 个评论
采纳的回答
Sonam Gupta
2017-3-31
"Optimize global data access" parameter shows up only if you generate code using embedded coder. In order to set its value to "Minimize global data access", you need to enable "Signal storage reuse" parameter.
You can build the model using 'Build Model' option. The keyboard shortcut for the same is 'ctrl + B'.
Hope this helps!
0 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Memory Usage 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!