• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: 64-bit compilation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: 64-bit compilation (From: Jeff Harrell <email@hidden>)

  • Prev by Date: Re: 64-bit compilation
  • Next by Date: Re: 64-bit compilation
  • Previous by thread: Re: 64-bit compilation
  • Next by thread: firstLineHeadIndent <-> firstLineTailIndent
  • Index(es):
    • Date
    • Thread