xPC Target Optimizations on compile speed really slow

1 view (last 30 days)
When I use the xPC Target option to set Compiler Optimizations to On, the compilation line where it compiles the .c file takes a really long time compared to when I set Optimizations to Off. I do notice an improvement in model AverageTET time, so the optimizations are doing something. But what I was curious about is why it takes so much longer to compile the model.c file with optimizations on? My model went from compiling in a few seconds to 2 hours just by setting that option.
  1 Comment
Chethan Pandarinath
Chethan Pandarinath on 6 Mar 2014
Thomas, do you have any tips on this? We are having similar slow compiles. Not sure if optimization is the culprit in our case, but if you found anything that helps, it'd be great to hear.

Sign in to comment.

Answers (0)

Community Treasure Hunt

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

Start Hunting!