[RFD] MIPS/gas: Optimisation cannot be set to 0

Maciej W. Rozycki macro@mips.com
Fri Nov 9 18:31:00 GMT 2007


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



More information about the Binutils mailing list