This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/TMS570LC4357-EP: Regarding optimization options

Part Number: TMS570LC4357-EP

Tool/software: TI C/C++ Compiler

Hello,

I would like to use "No Optimization" option about TI compiler.

SPNU151U is discribed that --opt_level=off(Ooff) mean "Disables all optimization".

If I used "Ooff" option, as following options is all disable, right?

(--opt_for_speed, -auto_inline, --call_assumptions, --disable_inlining, --fp_mode etc.)

Could you please advise me Optimization Options Setting.

Thanks,

Sho

  • It is better to start with the presumption that all the options work independently.  

    The option --opt_level (or you can use the shorter equivalent options -o or -O) specifies how much code is considered at once in order to make better decisions regarding optimization.  Using --opt_level=off disables all optimizations.  While all the other options are not specifically disabled, it is true that with optimization disabled, some of them have no effect.  Examples of options effectively disabled by --opt_level=off include --auto_inline, --call_assumptions, and --disable_inlining. 

    Yet other options are not completely disabled, but are reduced in effect.  One example is --opt_for_speed.

    And yet other options are not affected at all.  One example is --fp_mode.

    So, the final answer is: it depends.  I realize this is not a very satisfying answer.  If you have a question about a specific option, please ask.

    Thanks and regards,

    -George