How to edit compiler options with codegen?

I am compiling at matlab function into a mex using codegen. I'd like to edit the compiler flags (specifically the optimization options) that is used with codegen. I see how I can do that with mex, but not codegen. Any help is appreciated.

回答 (1 件)

Raghu Boggavarapu
Raghu Boggavarapu 2022 年 1 月 10 日

0 投票

You can use coder.updateBuildinfo to add additional compiler flags and linker flags of target compiler: Update build information object RTW.BuildInfo - MATLAB coder.updateBuildInfo (mathworks.com)

カテゴリ

ヘルプ センター および File ExchangeMATLAB Algorithm Acceleration についてさらに検索

質問済み:

2016 年 3 月 11 日

回答済み:

2022 年 1 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by