![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1042260/image.png)
How do you specify the /02 or -o2 optimization option in the MATLAB Coder APP?
1 view (last 30 days)
Show older comments
How do you specify the /02 or -o2 optimization option in the MATLAB Coder APP/ GUI?
A screenshot would be helpful. I just can't seem to find any documentation online.
MEX configured to use 'Microsoft Visual C++ 2017' for C++ language compilation.
2 Comments
Sumit Ghosh
on 22 Jun 2022
Edited: Sumit Ghosh
on 22 Jun 2022
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1042260/image.png)
I would think the place to do this would be in the "Build Process" section under the "Hardware" pane that shows up when you click "More Settings" from the "Generate Code" step in the app. Here you can select your toolchain and specify the build configuration. See the image above for details.
The options appear if the build type is anything other than MEX.
Accepted Answer
Sumit Ghosh
on 23 Jun 2022
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1043250/image.png)
I would think the place to do this would be in the "Build Process" section under the "Hardware" pane that shows up when you click "More Settings" from the "Generate Code" step in the app. Here you can select your toolchain and specify the build configuration. See the image above for details.
The options appear if the build type is anything other than MEX.
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!