SPRU514Z July 2001 – October 2023 SM320F28335-EP
For optimal evaluation, the compiler simplifies expressions into equivalent forms, requiring fewer instructions or registers. Operations between constants are folded into single constants. For example, a = (b + 4) - (c + 1) becomes a = b - c + 3.
This type of optimization is enabled by the --opt_level=0 and higher optimization settings.