LWN.net Logo

Rethinking optimization for size

Rethinking optimization for size

Posted Feb 11, 2013 19:25 UTC (Mon) by daglwn (subscriber, #65432)
In reply to: Rethinking optimization for size by Aliasundercover
Parent article: Rethinking optimization for size

> The listing is of course fabulously ugly but that is no change from any
> other compiler I ever used.

This is actually a quality of implementation issue. There are compilers out there that give fantastic listings, even down to a mostly-readable highish-level decompliation even after very aggressive code transformations. This is not very easy to obtain and really has to be baked-in at the beginning of the compiler design.

But you're right in that a good compiler will make your code unrecognizable. :)

> I wish the listing got more respect. It can be a powerful optimization
> tool.

Indeed. I don't think there's much one can do with gcc to get a decent listing. It just doesn't carry enough information. Neither does LLVM, unfortunately, at least AFAIK.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds