Info

この質問は閉じられています。 編集または回答するには再度開いてください。

Can function definitions be preserved with Matlab coder?

1 回表示 (過去 30 日間)
Todd Wetzel
Todd Wetzel 2017 年 2 月 9 日
閉鎖済み: MATLAB Answer Bot 2021 年 8 月 20 日
Just a simple question; We use Matlab coder to produce C++ code that eventually gets put on an embedded machine. We would like the generated code to maintain the functional structure of the Matlab code. Currently we observe that some of our Matlab functions are not preserved in the generated C++ code - these functions essentially become in-line C++ code.
Is there a setting or rule of thumb that can be used to prevent Matlab coder from removing functional blocks?
Thanks in advance,
Todd Wetzel

回答 (1 件)

Harsh
Harsh 2017 年 2 月 15 日
Hello,
The following doc maybe useful to you - it contains techniques you can use to control inlining during code generation.

この質問は閉じられています。

Community Treasure Hunt

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

Start Hunting!

Translated by