This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software: TI C/C++ Compiler
Dear Compiler Experts,
customer is having ASM files in his project using preprocessor directives (#include, #define, #ifdef, #ifndef, ...). When building the code he is getting ERROR messages like
=========================
ERROR! at line 1: [E0003] Only labels and comments may begin in the first column. Make sure that the label name is not a reserved keyword.
/* boardAsm.asm
ERROR! at line 1: [E0002] Illegal mnemonic specified
/* boardAsm.asm
ERROR! at line 2: [E0002] Illegal mnemonic specified
*
...
ERROR! at line 9: [E0003] Only labels and comments may begin in the first column. Make sure that the label name is not a reserved keyword.
#ifndef OS_ASM
=========================
It seems that other compilers offer preprocessing of the assembler files by either specific file extension or compiler options e.g. -preprocess_assembly_files
Do we have something similar for our TI ARM compiler 16.9.1.LTS?
I have checked the TI ARM Assembler Users Guide. There are some pre-processing options mentioned, but it is also mentioned, that they do not write preprocessed output, but instead generate some listing files.
There is also the ".cdecls" option described, which seems to automatically convert the C-type directives to assembler directives, but not sure, if this is the only and best option.
What would be the correct and/or most efficient approach to integrate those files into their build process?
Thanks and best regards,
Gregor