Tool/software: TI C/C++ Compiler
Hello All,
We are using CL2000 compiler version 6.4.6 and have noticed an unexplained and inconsistent insertion of assembler instruction 'SPM #0'. This occurs when we place an asm("SETC INTM") or asm("CLRC INTM") macro in our C source code. There are no multiplication or other arithmetic operations going on in our code, in the near vicinity. Also, it is inconsistent. We have one place in our codebase where an asm("SETC INTM") does *not* cause an 'SPM #0'. We are performing compiler analysis as part of our strict DO178C related process i.e. to scrutinise the resulting assembler after compilation and need to justify this extraneous, but harmless instruction addition. Our compiler flags, for the analysis task are set to:
-v28 -g -O2 -mf -ss -D"_DEBUG" -k -c --symdebug:none
Many Thanks
Chris