26.11.2012 Views

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 ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<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 />

6 C<strong>on</strong>tents<br />

32035 Rev. 3.22 November 2007<br />

4.1.1 Interoperability Between Languages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .41<br />

4.1.2 Run-Time Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .43<br />

4.1.3 Compiled and Linked Code Generates Unexpected Results . . . . . . . . . . . . .43<br />

4.1.4 Program Gives Unexpected Results or Terminates Unexpectedly . . . . . . . . .44<br />

4.2 GCC <str<strong>on</strong>g>Compiler</str<strong>on</strong>g>s (<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® . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44<br />

4.2.1 Compilati<strong>on</strong> Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .44<br />

4.2.2 Link-Time Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45<br />

4.2.3 Run-Time Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .45<br />

4.2.4 Compiled and Linked Code Generates Unexpected Results . . . . . . . . . . . . .45<br />

4.2.5 Program Gives Unexpected Results or Excepti<strong>on</strong> Behavior . . . . . . . . . . . . .45<br />

4.3 Intel <str<strong>on</strong>g>Compiler</str<strong>on</strong>g>s (<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® . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46<br />

4.4 PathScale <str<strong>on</strong>g>Compiler</str<strong>on</strong>g>s (<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® . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .46<br />

4.5 Intel <str<strong>on</strong>g>Compiler</str<strong>on</strong>g>s (<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® . . . . . . . . . . . . . . . . . . . . . . . . .46<br />

4.6 Microsoft® <str<strong>on</strong>g>Compiler</str<strong>on</strong>g>s <str<strong>on</strong>g>for</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>) Microsoft® Windows® . . . . . . . . . . . . . . . . . . .47<br />

4.6.1 Compilati<strong>on</strong> Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47<br />

4.6.2 Run-Time Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .47<br />

4.6.3 Compiled and Linked Code Generates Unexpected Results . . . . . . . . . . . . .47<br />

4.6.4 Program Gives Unexpected Results or Excepti<strong>on</strong> Behavior . . . . . . . . . . . . .47<br />

4.7 Sun <str<strong>on</strong>g>Compiler</str<strong>on</strong>g>s (<str<strong>on</strong>g>64</str<strong>on</strong>g>-bit) <str<strong>on</strong>g>for</str<strong>on</strong>g> Solaris . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48<br />

4.8 GCC <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® . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48<br />

4.8.1 Compilati<strong>on</strong> Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48<br />

4.8.2 Link-Time Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48<br />

4.8.3 Run-Time Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .48<br />

4.8.4 Compiled and Linked Code Generates Unexpected Results . . . . . . . . . . . . .49<br />

4.8.5 Program Gives Unexpected Results or Excepti<strong>on</strong> Behavior . . . . . . . . . . . . .49<br />

4.9 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> Linux® . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50<br />

4.9.1 Compilati<strong>on</strong> Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50<br />

4.9.2 Link-Time Errors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .50<br />

4.9.3 Compiled and Linked Code Generates Unexpected Results . . . . . . . . . . . . .50<br />

4.9.4 Program Terminates Unexpectedly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .51

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!