How to edit compiler options with codegen?

9 visualizaciones (últimos 30 días)
Philip
Philip el 11 de Mzo. de 2016
Respondida: Raghu Boggavarapu el 10 de En. de 2022
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.

Respuestas (1)

Raghu Boggavarapu
Raghu Boggavarapu el 10 de En. de 2022
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)

Categorías

Más información sobre MATLAB Algorithm Acceleration en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by