whole-program optimisation the hard way
Posted Mar 2, 2006 13:38 UTC (Thu) by nix
In reply to: whole-program optimisation the hard way
Parent article: Some patches of interest
GCC 4.1 provides the -fwhole-program and --combine options to do this, but you have to pass all translation units you want optimized together to GCC at once. This is very unfriendly to existing makefiles and counter to existing practice.
There are several plans afoot in the GCC development community to fix this: possibilities include an intermediate representation (in the form of a bytecoded language for a nonexistent virtual machine) which GCC can save, load several of, and optimize. Politics is involved here, though, and whatever's done it'll be a lot of work.
to post comments)