From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <3e1162e60710240930y27c36100m39062bd3b4743b59@mail.gmail.com> Date: Wed, 24 Oct 2007 09:30:58 -0700 From: "David Leimbach" To: "Fans of the OS Plan 9 from Bell Labs" <9fans@cse.psu.edu> Subject: Re: [9fans] Plan 9 installation disc question In-Reply-To: <20071024033229.2F6265B3E@mail.bitblocks.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3879_26864458.1193243458945" References: <3e1162e60710231532v5e995af1g992b79620b56a7b2@mail.gmail.com> <20071024033229.2F6265B3E@mail.bitblocks.com> Topicbox-Message-UUID: d85c3c90-ead2-11e9-9d60-3106f5b1d025 ------=_Part_3879_26864458.1193243458945 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline On 10/23/07, Bakul Shah wrote: > > > Mac OS X is still 32bit last I checked. You're likely having an EFI > related > > issue. > > MacOS X 10.4.9+ is already 64 bit capable, at least on the > MacBook Pro > > $ sysctl machdep.cpu.brand_string > machdep.cpu.brand_string: Intel(R) Core(TM)2 CPU T7400 @ 2.16GHz > > $ sysctl hw.optional.x86_64 > hw.optional.x86_64: 1 > > $ cat > ilp.c #include > int main(int c, char**v) { > printf("i:%d l:%d ll:%d p:%d\n", > sizeof(int), sizeof(long), sizeof(long long), sizeof(void*)); > } > EOF > > $ cc -m32 ilp.c -o ilp4 > $ cc -m64 ilp.c -o ilp8 > > $ file ilp4 ilp8 > ilp4: Mach-O executable i386 > ilp8: Mach-O 64-bit executable x86_64 > > $ ilp4 > i:4 l:4 L:8 p:4 > $ ilp8 > i:4 l:8 L:8 p:8 > it's increasingly offtopic but yes :-) The whole system is not 64bit end to end. Objective C and Cocoa aren't yet 64bit, and I've yet to fail to get alignment errors with certain C memory allocation functions on my MBP with Tiger. I hope it's all fixed Friday, not that I see me using 64bit apps too much, I don't think I have enough RAM, even if the extra registers give me a bit of a performance boost :-) Dave ------=_Part_3879_26864458.1193243458945 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

On 10/23/07, Bakul Shah <bakul+plan9@bitblocks.com> wrote:
> Mac OS X is still 32bit last I checked.  You're likely having an EFI related
> issue.

MacOS X 10.4.9+ is already 64 bit capable, at least on the
MacBook Pro

$ sysctl machdep.cpu.brand_string
machdep.cpu.brand_string: Intel(R) Core(TM)2 CPU         T7400  @ 2.16GHz

$ sysctl hw.optional.x86_64
hw.optional.x86_64: 1

$ cat > ilp.c <EOF
#include <stdio.h>
int main(int c, char**v) {
    printf("i:%d l:%d ll:%d p:%d\n",
           sizeof(int), sizeof(long), sizeof(long long), sizeof(void*));
}
EOF

$ cc -m32 ilp.c -o ilp4
$ cc -m64 ilp.c -o ilp8

$ file ilp4 ilp8
ilp4: Mach-O executable i386
ilp8: Mach-O 64-bit executable x86_64

$ ilp4
i:4 l:4 L:8 p:4
$ ilp8
i:4 l:8 L:8 p:8

it's increasingly offtopic but yes :-)

The whole system is not 64bit end to end.  Objective C and Cocoa aren't yet 64bit, and I've yet to fail to get alignment errors with certain C memory allocation functions on my MBP with Tiger.

I hope it's all fixed Friday, not that I see me using 64bit apps too much, I don't think I have enough RAM, even if the extra registers give me a bit of a performance boost  :-)

Dave
------=_Part_3879_26864458.1193243458945--