This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: symbol "#" generated by CPP(c preprocessor)


> 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]