Specifying inputs/outputs for C-code functions generated from MATLAB m-code using emlc as pass-by-reference
古いコメントを表示
How do I make the generated c-code use pass-by-reference for all inputs and outputs instead of pass-by-value?
I am using emlc to generate c-code for a function that has constant, scalar, array (vector), and struct inputs and outputs. I am going to be calling this c-code from FORTRAN code, so I need to use pass-by-reference for all inputs and outputs. Depending on my FORTRAN compiler, I also may need to specify a calling convention. In the past, I have been writing wrappers for the generated code, which is tedious. How can I specify the interface that I want?
3 件のコメント
James Tursa
2011 年 8 月 17 日
Can you show a short example, with code, to demonstrate the issue? How are you calling the emlc generated C code from Fortran?
Todd
2011 年 8 月 18 日
Todd
2011 年 8 月 18 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で MATLAB Coder についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!