cross compile (arm-none-eabi-as) arm assembly error “junk at end of line /” or undefined symbol-Collection of common programming errors

If you want to use macros or C comments, then you have to preprocess the source file with the C preprocessor. The C preprocessor removes comments and interprets macros. The GNU assembler should run the C preprocessor automatically if the source file name ends with .S, with an uppercase ‘S’.

Originally posted 2013-11-09 23:08:00.