SPRUI03E June 2015 – January 2023
Do Not Utilize 16-Bit Instructions in Section
.nocmp
The .nocmp directive instructs the compiler to not utilize 16-bit instructions for the code section .nocmp appears in. The .nocmp directive can appear anywhere in the section.
In the example, the section one is not compressed, whereas section two is compressed.
.sect "one"
LDW *A4, A5
LDW *B4, A5
.nocmp
NOP 4
ADD A4, A5, A6
ADD B4, B5, B6
NOP
...
.sect "two"
ADD A4, A5, A6
NOP
NOP
...