필터 지우기
필터 지우기

Getting Simulink to parse/ignore GCC syntax

조회 수: 2 (최근 30일)
Sean
Sean 2015년 2월 9일
댓글: Sean 2015년 2월 9일
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?

답변 (1개)

Jason Moore
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
  댓글 수: 1
Sean
Sean 2015년 2월 9일
Right, and I have that checked. Still, Simulink wants to resolve dependencies with my custom code before it will generate code from the model. If I get it to skip sections that it can't resolve, everything would be great.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by