How to create universal binaries (ppc / i386) using Xcode 3.2.2 for OSX?

I am trying to create a universal binary for a project at work, but I cannot properly configure Xcode for this.

I am familiar with the Apple Documentation regarding this, but apparently I am not reading it correctly.

Possible build options for Xcode:

  • Architecture
  • Base SDK
  • C / C ++ Compiler Version
  • Mac OS X Deployment Goal

In my settings, I have the following valid architectures: i386 ppc ppc64 ppc7400 ppc970 x86_64.

If I use the following options, I get binary with i386 and ppc970 :

  • Architecture: i386 ppc
  • Base SDK: Mac OS X 10.5
  • C / C ++ Compiler Version: GCC 4.0
  • Mac OS X: Mac OS X 10.5

:

  • ppc970, ppc7400 ( ppc)?
  • ppcs (ppc, ppc64, ppc7400, ppc970)?
  • ppc?

-, ppc7400 Mac Mini, . Mini G4 OSX 10.5.8. , , ppc7400, ppc970.

, SDK 10.4u. , . , - #defines. , gcc 4.2, , stdarg.h - #include_next . SDK 4.0, #define FSIZE long long , , .

, .


. . .

:

GCC_VERSION = 4.0 MACOSX_DEPLOYMENT_TARGET = 10.4 SDKROOT = macosx10.5 GCC_MODEL_TUNING = G3

(.o), arch 'ppc', . "ppc", "ppc7400" ( , ). - "ppc970".

, , . - ppc?

, (Hello World) . , "ppc", "ppc970".

.

+3
2

ppc970 == G5. G4, ppc7400.

, , 32-bit Universal ( Standard (32/64-bit Universal), ) , , .

+4

.

GCC_MODEL_PPC64 = NO

i.e., " 64- ".

64 . , G5 .

+1

Source: https://habr.com/ru/post/1751475/


All Articles