64 bit computing on Intel
64 bit computing on Intel
- Subject: 64 bit computing on Intel
- From: Jeffrey Stopple <email@hidden>
- Date: Fri, 3 Aug 2007 08:37:36 -0700
This is a beginner question; I have a new 8 core Mac Pro and I want
to compile some simple C code as a Command Line Utility Standard
Tool, taking advantage of the 64 bit architecture. On my older
PowerPC G5 (Xcode 2.3 OS X 10.4.10), I could determine whether the
compiler setting were correct by compiling the test program
#include <stdio.h>
int main()
{
printf("%d\n",sizeof(void*));
printf("%d\n",sizeof(long));
return 0;
}
Eventually I found the correct settings and got the output
8
8
wtf has exited with status 0.
Running the same code on the Mac Pro (Xcode 2.4.1, OS X 10.4.10) the
options either give
4
4
wtf has exited with status 0.
or else, some interesting failures to compile. For example, adding
the compiler flag -arch x86_64 gives the error message cc1: error:
invalid option 'powerpc64' !
Advice would be greatly appreciated.
Jeff Stopple
PS The Release Notes for Xcode 2.4.1 are not particularly helpful,
for example:
Projects built in Xcode 2.4.1 now have access to several predefined
build settings . . .
The new predefined build settings are:
NATIVE_ARCH_ACTUAL The actual architecture of the build machine
(ppc, ppc64, i386, or x86_64).
NATIVE_ARCH_32_BIT The 32-bit version of the build machine’s
architecture (ppc or i386).
NATIVE_ARCH_64_BIT The 64-bit version of the build machine’s
architecture (ppc64 or x86_64). . .
You cannot set these build setting values.
What is the meaning of settings one can not set?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden