Compiler Usage Guidelines for 64-Bit Operating Systems on AMD64 ...
Compiler Usage Guidelines for 64-Bit Operating Systems on AMD64 ...
Compiler Usage Guidelines for 64-Bit Operating Systems on AMD64 ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
32035 Rev. 3.22 November 2007<br />
<str<strong>on</strong>g>Compiler</str<strong>on</strong>g> <str<strong>on</strong>g>Usage</str<strong>on</strong>g> <str<strong>on</strong>g>Guidelines</str<strong>on</strong>g> <str<strong>on</strong>g>for</str<strong>on</strong>g> AMD<str<strong>on</strong>g>64</str<strong>on</strong>g> Plat<str<strong>on</strong>g>for</str<strong>on</strong>g>ms<br />
4.10 PathScale <str<strong>on</strong>g>Compiler</str<strong>on</strong>g>s (32-<str<strong>on</strong>g>Bit</str<strong>on</strong>g>) <str<strong>on</strong>g>for</str<strong>on</strong>g> Linux® . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51<br />
4.11 Intel <str<strong>on</strong>g>Compiler</str<strong>on</strong>g>s (32-<str<strong>on</strong>g>Bit</str<strong>on</strong>g>) <str<strong>on</strong>g>for</str<strong>on</strong>g> Microsoft® Windows® . . . . . . . . . . . . . . . . . . . . . . . . .51<br />
4.11.1 Compilati<strong>on</strong> Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51<br />
4.11.2 Compiled and Linked Code Generates Unexpected Results . . . . . . . . . . . . .51<br />
4.11.3 Program Terminates Unexpectedly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .52<br />
4.11.4 Program Gives Unexpected Results or Excepti<strong>on</strong> Behavior . . . . . . . . . . . . .52<br />
4.12 Microsoft® <str<strong>on</strong>g>Compiler</str<strong>on</strong>g>s (32-<str<strong>on</strong>g>Bit</str<strong>on</strong>g>) <str<strong>on</strong>g>for</str<strong>on</strong>g> Microsoft® Windows® . . . . . . . . . . . . . . . . . . .52<br />
4.12.1 Run-Time Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .53<br />
4.12.2 Compiled and Linked Code Generates Unexpected Results . . . . . . . . . . . . .53<br />
4.12.3 Program Gives Unexpected Results or Excepti<strong>on</strong> Behavior . . . . . . . . . . . . .53<br />
4.13 Sun <str<strong>on</strong>g>Compiler</str<strong>on</strong>g>s (32-bit) <str<strong>on</strong>g>for</str<strong>on</strong>g> Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54<br />
4.13.1 Compilati<strong>on</strong> Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .54<br />
4.13.2 Compiled and Linked Code Generates Unexpected Results . . . . . . . . . . . . .54<br />
Chapter 5 Peak Opti<strong>on</strong>s <str<strong>on</strong>g>for</str<strong>on</strong>g> SPEC ® -CPU Benchmark Programs . . . . . . . . . . . . . . . . . . . . .55<br />
5.1 PGI Release 7.1 32- and <str<strong>on</strong>g>64</str<strong>on</strong>g>-<str<strong>on</strong>g>Bit</str<strong>on</strong>g> <str<strong>on</strong>g>Compiler</str<strong>on</strong>g>s <str<strong>on</strong>g>for</str<strong>on</strong>g> Linux ® . . . . . . . . . . . . . . . . . . . . . . .55<br />
5.1.1 Base Command-line Opti<strong>on</strong>s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .55<br />
5.1.2 Peak Command-line Opti<strong>on</strong>s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .57<br />
5.2 PGI Release 7.1 <str<strong>on</strong>g>Compiler</str<strong>on</strong>g>s (32- and <str<strong>on</strong>g>64</str<strong>on</strong>g>-<str<strong>on</strong>g>Bit</str<strong>on</strong>g>) <str<strong>on</strong>g>for</str<strong>on</strong>g> Microsoft® Windows® . . . . . . . . .59<br />
5.2.1 Invoking the <str<strong>on</strong>g>Compiler</str<strong>on</strong>g>s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59<br />
5.2.2 Base Command-line Opti<strong>on</strong>s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .59<br />
5.2.3 Peak Command-line Opti<strong>on</strong>s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .62<br />
5.3 SuSE GCC 4.2.0(<str<strong>on</strong>g>64</str<strong>on</strong>g>-<str<strong>on</strong>g>Bit</str<strong>on</strong>g>) C/C++ <str<strong>on</strong>g>Compiler</str<strong>on</strong>g> <str<strong>on</strong>g>for</str<strong>on</strong>g> Linux ® . . . . . . . . . . . . . . . . . . . . . . .<str<strong>on</strong>g>64</str<strong>on</strong>g><br />
5.4 Pathscale EKO 3.0 C/C++ <str<strong>on</strong>g>Compiler</str<strong>on</strong>g> (<str<strong>on</strong>g>64</str<strong>on</strong>g>-<str<strong>on</strong>g>Bit</str<strong>on</strong>g>) <str<strong>on</strong>g>for</str<strong>on</strong>g> Linux ® . . . . . . . . . . . . . . . . . . . . .66<br />
5.5 Pathscale EKO 3.0 Fortran <str<strong>on</strong>g>Compiler</str<strong>on</strong>g> (<str<strong>on</strong>g>64</str<strong>on</strong>g>-bit) <str<strong>on</strong>g>for</str<strong>on</strong>g> Linux ® . . . . . . . . . . . . . . . . . . . . .67<br />
5.6 Intel 9.0 C/C++ <str<strong>on</strong>g>Compiler</str<strong>on</strong>g> <str<strong>on</strong>g>for</str<strong>on</strong>g> (32-<str<strong>on</strong>g>Bit</str<strong>on</strong>g>) Microsoft® Windows® . . . . . . . . . . . . . . . .68<br />
5.7 Sun C/C++ <str<strong>on</strong>g>Compiler</str<strong>on</strong>g> (<str<strong>on</strong>g>64</str<strong>on</strong>g>-bit) <str<strong>on</strong>g>for</str<strong>on</strong>g> Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69<br />
5.8 Sun Fortran <str<strong>on</strong>g>Compiler</str<strong>on</strong>g> (<str<strong>on</strong>g>64</str<strong>on</strong>g>-bit) <str<strong>on</strong>g>for</str<strong>on</strong>g> Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .69<br />
C<strong>on</strong>tents 7