0

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.

Community
  • 1
  • 1
user310291
  • 36,946
  • 82
  • 271
  • 487

2 Answers2

2

How about the gcc man page? % man gcc

echo
  • 7,737
  • 2
  • 35
  • 33
  • Thanks will try but I'm not used to mac and linux. I prefer doc online which is more pretty and may contain more explanations :) – user310291 Dec 29 '10 at 19:35
  • http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/gcc.1.html – echo Dec 29 '10 at 19:42
2

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.