tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: depreciate asm with -traditional-cpp?
On Wed, Sep 16, 2009 at 12:05:46 +0200, Matthias Drochner wrote:
> appearently it doesn't need much to have .S files
> compiled without the -traditional-cpp flag, at least
> on i386. It is just the concatenation operator where
> label names are synthesized which needs to be changed.
> Are there good reasons to stick with traditional syntax?
> (Background of my question is that I'm playing with
> clang which doesn't support "-traditional-cpp".)
At least one of the reasons for -traditional-cpp is that some
architectures use # as literal prefix, e.g. on sh3:
mov #0, r0
Now, consider you need to use this instruction in a macro, where C99
cpp interprets # as stringification.
SY, Uwe
--
uwe%stderr.spb.ru@localhost | Zu Grunde kommen
http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen
Home |
Main Index |
Thread Index |
Old Index