Getting Simulink to parse/ignore GCC syntax
1 回表示 (過去 30 日間)
古いコメントを表示
Hi, I am working with a large code base that contains GCC compatible code generated from other tools. I tried to include them as custom code in a Simulink diagram but when I go to build the model, Simulink is tripping all over itself over GCC syntax like _attribute_ and some inline assembly that the Windows SDK does not recognize. I don't need Simulink to compile anything; just generate C code from my models. Are there any workarounds?
0 件のコメント
回答 (1 件)
Jason Moore
2015 年 2 月 9 日
There is an option to generate code only for code generation. If you have items that need compilation for simulation purposes that is a different question. To only complete code generation and not build the result you can go to Configuration Parameters -> Code Generation -> Generate Code only
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!