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
- From: Kevin Atkinson <kevina at gnu dot org>
- To: Paul Koning <pkoning at equallogic dot com>
- Cc: shebs at apple dot com, <mark at codesourcery dot com>, <austern at apple dot com>,<gcc at gcc dot gnu dot org>, <mrs at apple dot com>, <dalej at apple dot com>
- Date: Sat, 8 May 2004 01:55:44 -0400 (EDT)
- Subject: Re: MS/CW-style inline assembly for GCC
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