Re: 64-bit compilation
Re: 64-bit compilation
- Subject: Re: 64-bit compilation
- From: "Alastair J.Houghton" <email@hidden>
- Date: Tue, 8 Jul 2003 22:34:05 +0100
On Tuesday, July 8, 2003, at 09:51 pm, Jeff Harrell wrote:
Perhaps I should have been more specific.
Here's a program.
int main(void) {
fprintf(stdout, "sizeof(void*) = %d", sizeof(void*));
return 0;
}
(I wrote that in Mail. Don't laugh at me if it doesn't compile.)
When I run a program like that on my G4, I get "sizeof(void*) = 4."
This makes sense: a void pointer is 4 bytes long, or 32 bits.
Presumably, one will be able to take that same program, wave one's
magic wand, and compile it in such a way that when run on a G5, it
reports "sizeof(void*) = 8," or 64 bits.
How?
I think the compiler switch you need is -mpowerpc64.
Kind regards,
Alastair.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.