views:

47

answers:

1

Hello, (sorry, i -almost- stoled the title from someone else). Is it possible to get information about any binary on Snow Leopard, to determine if it's a 32 bits or 64 bits binary ? I played with the 'otool' command but can't find this kind of information. Thanks.

+2  A: 

Use the 'file' command instead of 'otool'. It will list all the architectures in the binary. On Intel Macs i386 is 32 bit and x86_64 is 64 bit.

Grant Lammi
Great ! shame on me for not finding this :)
jideel
There's also lipo -info.
Nicholas Riley