This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]