How to tell when app will run in 64-bit mode?

Jon Gotow gotow at stclairsoft.com
Thu Feb 7 07:17:37 PST 2008


At 1:39 AM +0100 2/7/08, Helge Hess wrote:
>>  Would the "file" tool help you?
>>  file /path/to/binary | grep x86
>>  or similar.
>
>
>How would that help? It just contains the architectures included in 
>the FAT, but not in which architecture the binary will get 
>executed/loaded by the system?

Correct.  And trying to predict what the system will or should do 
with it, even if you do know the processor type, isn't a particularly 
great approach either.  That's why using sysctl turned out to be the 
best approach in my case.

  - Jon

-- 
________________________________________________________________________
         Jon Gotow                     gotow at stclairsoft.com
    St. Clair Software              http://www.stclairsoft.com/
     Fax (540)552-5898               ftp://ftp.stclairsoft.com/


More information about the MacOSX-dev mailing list