MS/CW-style inline assembly for GCC

Richard Guenther rguenth@tat.physik.uni-tuebingen.de
Thu May 6 22:11:00 GMT 2004


Stan Shebs wrote:

> A purely syntactic extension would be kind of pointless - what this
> syntax does is to simplify and automate the parts of GCC assembly
> syntax that are known to be extremely difficult for users to get right,
> which also happens to facilitate porting code that could previously
> only be handled by a proprietary compiler. So it does require a small
> amount of platform support, namely to compute the arcana that has been
> exposed to the poor users.

Ugh. I guess people writing more than three lines of assembly should use 
an assembler and not the compiler to do their work! For the unusual 
short asm sequences gcc inline assembly is easy enough to understand.

Richard.



More information about the Gcc mailing list