使用 -m64 选项可指示在 64 位 x86 平台上编译 64 位 Solaris 软件。如果指定带有除 native64 或 generic64 以外的标志的 -xtarget,则还必须按如下方式指定 -m64 选项:-xtarget=opteron ... -m64,否则编译器将使用 32 位内存模型。
表 B–39 x86 上的 -xtarget 扩展
-xtarget= |
-xarch |
-xchip |
-xcache |
---|---|---|---|
generic |
generic |
generic |
generic |
386 |
已废弃。改用 -xtarget=generic。有关废弃选项的完整列表,请参见A.1.15 废弃的选项。 |
||
486 |
已废弃。改用 -xtarget=generic。有关废弃选项的完整列表,请参见A.1.15 废弃的选项。 |
||
opteron |
sse2 |
opteron |
64/64/2:1024/64/16 |
386 |
pentium |
generic |
|
pentium_pro |
pentium_pro |
pentium_pro |
generic |
pentium3 |
sse |
pentium3 |
16/32/4:256/32/4 |
pentium4 |
sse2 |
pentium4 |
8/64/4:256/128/8 |