This is the mail archive of the
mailing list for the GCC project.
Re: MS/CW-style inline assembly for GCC
- From: Mike Stump <mrs at apple dot com>
- To: Stan Shebs <shebs at apple dot com>
- Cc: Richard Henderson <rth at redhat dot com>, gcc at gcc dot gnu dot org
- Date: Tue, 4 May 2004 18:59:10 -0700
- Subject: Re: MS/CW-style inline assembly for GCC
int x, y;
addi x, y, 3
I find the above easier on my brain and easier to remember than gcc's
current syntax. This is the main reason that I don't think adding
support for this style inline asm would be a bad thing.
Currently, whenever I want to write any inline asm, I have to go find a
snippet to cut and paste, and then I have to puzzle out what constraint
to use, which order the arguments go in, how to get the syntax just
right... It just seems way harder than it should be.
I'd rather gcc `know' how to get the details right.
Hey, Stan, did you tell them about the code that transforms SSE2
instructions in inline assembly into altivec instructions on the fly?