symbol "#" generated by CPP(c preprocessor)
Paul Brook
paul@codesourcery.com
Tue Oct 13 12:26:00 GMT 2009
> Here is a problem that '#' is a symbol used in my chip assembler as
> prefix before immediate. Like: MOV R0 #0x123.
> ...
> Is there any solution to solve this?
Make your assembler accept # as as a comment stat only if it appears at the
start of a line. There are several other targets (e.g. ARM) that already do
this. If you absolutely must use a proprietary assembler then I suggest
writing yourself a wrapper script.
Paul
More information about the Gcc
mailing list