Slim lto objects

Jan Hubicka hubicka@ucw.cz
Tue Sep 27 14:43:00 GMT 2011


> On Mon, Sep 26, 2011 at 14:42, Jan Hubicka <hubicka@ucw.cz> wrote:
> > Hi,
> > this patch implements slim LTO. It is updated version of Andi's patch.  It is
> > done by terminating IPA optimization after analyzing and outputting LTO and in
> > compile_file skipping stuff that outputs assembly.
> 
> Nice!  Have you measured object size reduction factors?  Compilation
> time differences?
I made just simple combine.c test. Compile time went down from 12 seconds to 2
seconds and .o file was about 500Kb as compared to 190kb w/o -flto and 1.3MB
w/o lto but with -g.  So slim LTO seems smaller than -g objects but still a lot
bigger than binary.

Once I resolve the other issues, I will try to get some data on firefox build.

Thanks!
Honza



More information about the Gcc-patches mailing list