This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: MS/CW-style inline assembly for GCC
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~