user310291
user310291

Reputation: 38228

Where can I find -arch options doc for mac gcc?

The link here Apple's gcc, what's the difference between -arch i386 and -m32? is not valid any more.

And searching on apple site is astoundingly difficult: I couldn't find it.

Upvotes: 0

Views: 1886

Answers (2)

user557219
user557219

Reputation:

Most (all?) man pages are available at Apple’s Web site, too: gcc man page

-arch is an Apple GCC-specific option that tells the compiler to generate code for all architectures specified with -arch, e.g. -arch i386 -arch x86_64 will produce fat binaries targeted at both 32-bit and 64-bit Intel, whereas only one of -m32, -m64 is used by the compiler.

Upvotes: 2

echo
echo

Reputation: 7875

How about the gcc man page? % man gcc

Upvotes: 2

Related Questions