LWN.net Logo

GCC celebrates 25 years with the 4.7.0 release

GCC celebrates 25 years with the 4.7.0 release

Posted Mar 23, 2012 8:14 UTC (Fri) by jezuch (subscriber, #52988)
In reply to: GCC celebrates 25 years with the 4.7.0 release by PaXTeam
Parent article: GCC celebrates 25 years with the 4.7.0 release

> a small fact about the LTO work done for gcc 4.7: it can now LTO linux as well

Are there any instructions on how to do this? I tried and failed several times, just not familiar enough with the Linux build system :)

> (needs a few minutes and a few GBs of memory on a quad-core SNB)

Actually, as odd as it sounds, I bought extra RAM for my computer specifically to be able to compile things with LTO... GCC 4.7 vastly reduces memory usage of LTO but no, Chromium still does not fit ;)


(Log in to post comments)

GCC celebrates 25 years with the 4.7.0 release

Posted Mar 23, 2012 10:13 UTC (Fri) by PaXTeam (subscriber, #24616) [Link]

i don't know of any public instructions for LTO'ing linux, i had to work it out myself. it needs a somewhat ugly 50k patch including a gcc plugin (on top of PaX which has the gcc plugin build infrastructure).

GCC celebrates 25 years with the 4.7.0 release

Posted Mar 23, 2012 12:20 UTC (Fri) by grobian (guest, #83608) [Link]

https://github.com/andikleen/linux-misc/commits/lto

worked fine when I've tested it last year.

GCC celebrates 25 years with the 4.7.0 release

Posted Mar 23, 2012 16:14 UTC (Fri) by jezuch (subscriber, #52988) [Link]

> https://github.com/andikleen/linux-misc/commits/lto

And it has a respectable name attached to it! I'll give it a try, thanks!

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