PreviousNext
Variable access decomposition
Help > Appendix > Code Optimization > Variable access decomposition

FLASH-                        RAM                Speed+

 

CC5X is not able to reorder hidden access to the bytes the wider variables consist of so it generates excess MOVLB instructions.

 

bank11 uns16 v11;

bank12 uns16 v12;

 

if ( v11 == v12 )

  nop();

 

bank11 uns16 v11;

bank12 uns16 v12;

 

if ( v11.low8 == v12.low8 && v12.high8 == v11.high8 )

  nop();