MS/CW-style inline assembly for GCC
Kevin Atkinson
kevina@gnu.org
Sat May 8 07:00:00 GMT 2004
On Fri, 7 May 2004, Paul Koning wrote:
> I think an asm statement with any semantics OTHER than "make this
> block of instructions appear in the binary exactly as written" is
> badly broken. (Yes, that's why the MIPS assembler is bogus --
> although there at least you can tell it ".set noreorder".)
I would disagree. It depends on the users need. In fact as a novice
assembly programmer I would rather have a compiler (or assembly) reorder
instruction if they can be scheduled better. An expert assembly
programmer may of course rather have them appear exactly as given. I
would also rather have a compiler break up a long assembly statement if it
will be beneficial and the exact semantics of the assembly code are the
same.
--
http://kevin.atkinson.dhs.org
More information about the Gcc
mailing list