This is the mail archive of the gas2@sourceware.cygnus.com mailing list for the gas2 project.


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

Re: other apps that assemble code


>    I have seen articles about "optimizing assemblers" for really smart cpus
>    which insert nops, reorder instructions to avoid stalls, reassign
>    registers, etc.   This type of tools would benefit from a generic assembly
> 
> Ok, but methinks this is still just GAS.
> Or am I misunderstanding something?

I'm not sure if it really goes to answer the original question or not,
but there exist highly optimizing assemblers.  The one I worked with was
the MIPS assembler.  I don't know if that technology was kept when MIPS
collapsed into SGI or not.  By that time, I'd defected from that train.

The mips uopt pass did many of the same optimizations at the assembler
level that GCC does a couple of levels up.  It did flow analysis,
constant propogation, branch prediction and all sort os wild and crazy
things.  The "optimization" in GAS is far less ambitious.

This is the lone thing that I actually miss about the MIPS tools.

-- 
Robert Lipe       http://www.dgii.com/people/robertl       robertl@dgii.com