This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: will LTO help python modules?
- From: Ian Lance Taylor <iant at google dot com>
- To: Neal Becker <ndbecker2 at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Sun, 27 Mar 2011 10:32:02 -0700
- Subject: Re: will LTO help python modules?
- References: <imnehl$vrg$1@dough.gmane.org>
Neal Becker <ndbecker2@gmail.com> writes:
> I'm guessing LTO is not helpful to dynamically loaded modules for e.g., python.
It could be helpful. LTO has some additional optimization power when
you pass the -fwhole-program option, which you could not do when
building a dynamically loaded module. However, even without
-fwhole-program LTO can still do cross-file inlining and other such
optimizations.
Ian