How to not-optimize my code generated by Matlab coder
이전 댓글 표시
I have a function named top()
top()
{
f1(p1, p2, p3);
f2(p3,p4,p5);
f2(p6, p7, p8);
}
I use f2 and f1 as entry point to generate the code, and use top() as reference. But in the generated code, f1 is optimized out. f2 is generated into to version. f2_1(), and f2_2() for each f2 call respectively. It is not what I want.
I want to generate f1 and f2 as it is without changing on interface (including all the argument not changed. how the top() call f1() and f2() not changed). How to do it?
Thanks!
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Performance에 대해 자세히 알아보기
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!