linux-mips
[Top] [All Lists]

Re: MIPS gas relaxation still doesn't work

To: wilson@redhat.com
Subject: Re: MIPS gas relaxation still doesn't work
From: Paul Koning <pkoning@equallogic.com>
Date: Tue, 15 Oct 2002 16:02:50 -0400
Cc: hjl@lucon.org, aoliva@redhat.com, rsandifo@redhat.com, linux-mips@linux-mips.org, gcc@gcc.gnu.org, binutils@sources.redhat.com
Original-recipient: rfc822;linux-mips@linux-mips.org
References: <20021014082810.A28682@lucon.org> <wvnit05ovct.fsf@talisman.cambridge.redhat.com> <20021014091649.A29353@lucon.org> <wvnfzv9ou6j.fsf@talisman.cambridge.redhat.com> <20021014101640.A30133@lucon.org> <orhefo3oht.fsf@free.redhat.lsd.ic.unicamp.br> <20021014105055.B30830@lucon.org> <orzntg298z.fsf@free.redhat.lsd.ic.unicamp.br> <20021014110118.B30940@lucon.org> <orelas24n2.fsf@free.redhat.lsd.ic.unicamp.br> <20021014123940.A32333@lucon.org> <xwusmz7xym6.fsf@tonopah.toronto.redhat.com>
Sender: linux-mips-bounce@linux-mips.org
>>>>> "Jim" == Jim Wilson <wilson@redhat.com> writes:

 >> Can gcc not to emit nop nor noreorder when it tries to fill the
 >> delay slot with nop?

 Jim> You never want the assembler to try to fill delay slots.
 Jim> Consider a compiler optimization like software pipelining. ...
 Jim>  Meanwhile, we need to get out of
 Jim> the habit of relying on assembler optimizations.  In the long
 Jim> run, assembler optimizations are bad, and we need to stop using
 Jim> them as soon as possible.  Gcc should emit .set
 Jim> nomacro/noreorder/noat/etc at the begining of its assembly
 Jim> output, and never turn them on.

Makes sense to me.  As an assembly language programmer, I do the same
thing in handwritten code, for the same reasons.

      paul


<Prev in Thread] Current Thread [Next in Thread>