Part Number: MSP430FR5949
Tool/software: Code Composer Studio
Hi,
I entered the below question under an old, closed thread so maybe you do not see it
I ran into a strange behaviour of the C-compiler for the MSP430.
If I compile code with the -0 option on (register optimization) the compiler just skips lines of C code.
If I switch all optimization off, the compiler wors as expected.
\Below pieces of dis-assembly indicating which C-lines re left out
this piece of code is without optimization.
Look at the code after the lines
if((RC5Code & S2Mask) == 0;
Code += 64;
The C- lines
Address = ((RC5Code & AddressMask) >>6);
ïf (Address == AmpAddress)
have dissapeared.
this is the dis-assembly with -0 optimization
Do you have an explanation for that?