This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: symbol "#" generated by CPP(c preprocessor)
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: daniel tian <daniel dot xntian at gmail dot com>, peng dot zheng at mavrixtech dot com
- Date: Tue, 13 Oct 2009 13:17:24 +0100
- Subject: Re: symbol "#" generated by CPP(c preprocessor)
- References: <121fadb80910130505r41be67e4hfe5f3a67e114c824@mail.gmail.com>
> 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