2012-11-30 143 views

回答

5

如果您使用Apple的GCC實現在Macintosh計算機上編譯,則可以傳遞的其中一個附加選項是「-arch」參數。

The man page這樣說:

-arch arch 
    Compile for the specified target architecture arch. 
    The allowable values are i386, x86_64, ppc and ppc64. 
    Multiple options work, and direct the compiler to produce "universal" 
    binaries including object code for each architecture specified with -arch. 
    This option only works if assembler and libraries are available 
    for each architecture specified. (APPLE ONLY) 
+0

是'i386'總是(我的意思是永遠)的32位英特爾? –

+0

AFAIK ......除非AMD或其他一些我不知道的英特爾競爭對手正在爲蘋果電腦製造芯片。 –

+0

好的,我會給你一個鏡頭,看看我能找到什麼。謝謝。 –

相關問題