Re: Mac OS X Snow Leopard and 64-bit applications
Re: Mac OS X Snow Leopard and 64-bit applications
- Subject: Re: Mac OS X Snow Leopard and 64-bit applications
- From: Andrew Gallatin <email@hidden>
- Date: Mon, 31 Aug 2009 08:33:05 -0400
Mo McRoberts wrote:
therefore break. In contrast, most other x86_64 systems tend to be set
up such that x86_64 is reported as the “system” architecture (where
the kernel architecture is pretty incidental), and so you have a
triplet of, say, x86_64-pc-linux-gnu.
Where most is linux? Nobody can really even agree if its
amd64 or x86_64, much less what uname is supposed to say.
For example, here's FreeBSD/amd64:
% uname -a
FreeBSD thor 8.0-BETA2 FreeBSD 8.0-BETA2 #0 r196400: Thu Aug 20 09:38:12
EDT 2009 gallatin@thor:/usr/src/sys/amd64/compile/THOR amd64
% uname -p
amd64
Once you translate amd64 to x86_64, it behaves the way you'd expect.
gcc defaults to producing 64-bit binaries.
And here is OpenSolaris i86pc:
% uname -a
SunOS dell1435a 5.11 snv_111a i86pc i386 i86pc
% uname -p
i386
On Solaris, you use an obscure command (isainfo) to tell you
what instruction set is supported:
% isainfo -n
amd64
But gcc (and sunpro) produce 32-bit binaries by default.
% touch t.c
% gcc -c t.c
% file t.o
t.o: ELF 32-bit LSB relocatable 80386 Version 1
% gcc -m64 -c t.c
% file t.o
t.o: ELF 64-bit LSB relocatable AMD64 Version 1
So I really don't think MacOSX is any more confusing than
anything else..
Cheers,
Drew
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden