This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [RFD] MIPS/gas: Optimisation cannot be set to 0
On Fri, 9 Nov 2007, Paul Koning wrote:
> This is as it should be. "optimizing assembler" is a contradiction in
> terms.
Agreed, but given some of the peculiarities of the MIPS processor, it is
very useful for hand-coded assembly -- load-delay slots, dependencies
between mfhi/mflo and the following multiply/divide instructions, etc.
which vary across members of the family. The output of GCC should need no
optimisation in any case, no argument.
> In other words, I thought that gcc now tells the assembler ".set
> noreorder; .set nomacro; .set noat" so the assembler isn't going to do
> ANY transformations.
Not for inline asms (understandable) and (to my surprise!) not for MIPS16
code.
Maciej