How to optimize the coder generated code to use pointer as input instead of structure ?
古いコメントを表示
My matlab function is this :
[staticAlign_output, per_var] = staticAlignment(staticAlign_input, staticAlign_output, detn_reports, per_var, sa_cals)
Therefore the auto generated c code for this function is like this:
void staticAlignment(const staticAlign_Input_T staticAlign_input,
staticAlign_Output_T *staticAlign_output,
const Detection_Reports_T detn_reports , Per_Var_T *per_var, const
Cals_Static_Align_T sa_cals)
So it calls the sttucture Detection_Reports_T as the input. Since this is a huge structure, we prefer to use pointer instead of structure.
Is there a command to fix this ?
Thanks
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB Coder についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!