Hi while i cross compile an startup.s file (arm-none-eabi-as file.s) (*-gcc)
I am getting in each commentary line some errors
- junk at end of line, first unrecognized character is /
when i delete the // some comment lines i get errors about undefined symbols even i defined them at beginning of the file.
anyone know whats wrong?
(arm) Assembler does not support // comments or defines, you have to use .equ and @ for comments. If you let gcc parse it you can put C isms like that into your assembler. Personally I avoid such C isms and keep the assembler clean. if you cannot do that or need includes with defines for example let gcc pre-process the file before sending it to gas.