The first part of this document describes issues you should consider when bringing code to a 64-bit architecture. You should read through those chapters before you compile your code for the first time, to help you determine whether the compiler warnings are useful or relevant (and possibly do an initial code scrub to look for common errors).
After you have read those chapters, it's time to compile your code with a 64-bit target architecture. You can either compile your code directly (using GCC) or through Xcode. This chapter takes you through the process of setting up your build environment for 64-bit compilation.
Compiling 64-Bit Code Using GCC
Compiling 64-Bit Code Using Xcode
Historical Footnote: Compiling 64-Bit Code for Mac OS X v10.4
Last updated: 2008-04-08