Interprocedural Optimization - Flags and Implementation

Flags and Implementation

The Intel C/C++ compilers allow whole-program IPO. The flag to enable interprocedural optimizations for a single file is -ip, the flag to enable interprocedural optimization across all files in the program is -ipo.

The GNU GCC compiler has function inlining, which is turned on by default at -O3, and can be turned on manually via passing the switch (-finline-functions) at compile time. GCC version 4.1 has a new infrastructure for inter-procedural optimization.

Also Gcc has options for IPO: -fwhole-program --combine.

The Microsoft C Compiler, integrated into Visual Studio, also supports interprocedural optimization.

The Clang supports IPO at optimization level -O4.

Read more about this topic:  Interprocedural Optimization

Famous quotes containing the words flags and and/or flags:

    Gentlemen, those confederate flags and our national standard are what has made this union great. In what other country could a man who fought against you be permitted to serve as judge over you, be permitted to run for reelection and bespeak your suffrage on Tuesday next at the poles.
    Laurence Stallings (1894–1968)

    No doubt I shall go on writing, stumbling across tundras of unmeaning, planting words like bloody flags in my wake. Loose ends, things unrelated, shifts, nightmare journeys, cities arrived at and left, meetings, desertions, betrayals, all manner of unions, adulteries, triumphs, defeats ... these are the facts.
    Alexander Trocchi (1925–1983)