필터 지우기
필터 지우기

Generate C Function wih inline keyword

조회 수: 1 (최근 30일)
Prashant
Prashant 2011년 3월 1일
Hello there,
I want to create a subsustem in simulink which can generate a function (in C code) with the inline keyword, I am using Real Time Workshop to generate the C code.
Is that possible with RTW?
Kindly suggest some solution.
Regards Prashant

답변 (2개)

Kaustubha Govind
Kaustubha Govind 2011년 3월 3일
I don't think this functionality is currently available. Please contact Tech Support to verify this, and also submit an enhancement request.

MarkB
MarkB 2011년 3월 21일
This is probably not necessary. For any atomic subsystem, you can choose the type of code generated for it. The "inline" option in the subsystem's parameter dialog should produce inlined code, which is what the "inline" command would have done anyway. This approach ought to produce more portable code since "inline" isn't available on all C compilers.

카테고리

Help CenterFile Exchange에서 General Applications에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by