Embedded Coder - How to generate code without optimizations?
4 ビュー (過去 30 日間)
古いコメントを表示
Hello ,
I want to generate C Code from my simulink model (with embedded coder).
In my simulink model there are 4 MATLAB Function Blocks and I want to generate 4 functions with input and output.
With the standard configuration the embedded coder generates a single big function with no input and output.
How can I improve my code generation with functions that correspond to MATLAB block functions?
Thanks
0 件のコメント
採用された回答
stozaki
2020 年 9 月 23 日
Hello Giuseppe,
Subsystems, such as the MATLAB Function block, generate inlined code by default.
If you want the subsystem to be an independent function, change the code generation options to allow arguments.
stozaki
4 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!