MS/CW-style inline assembly for GCC

Richard Henderson rth@redhat.com
Fri May 7 21:55:00 GMT 2004


On Fri, May 07, 2004 at 02:15:05PM -0700, Stan Shebs wrote:
> Right, although I make a separate asm statement for each line of
> assembly (if nothing else, a single asm statement would have a
> rather large number of inputs, outputs, and clobbers, could cause
> reload problems).

If you split apart the lump, you'll break load-locked/store-conditional
sequences, which have strict requirements on what can come in between.
With non-x86, I don't expect that *moderate* uses of inline assembly
should cause problems on 32 register targets.

Of course, that MacMAME garbage that was posted eariler, where the
entire function is inline assembly, is just stupid.  That deserves
to fail.


r~



More information about the Gcc mailing list