FROM : Jon Gotow
DATE : Thu Feb 07 16:17:37 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 <email_removed>
St. Clair Software http://www.stclairsoft.com/
Fax (540)552-5898 ftp://ftp.stclairsoft.com/
DATE : Thu Feb 07 16:17:37 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 <email_removed>
St. Clair Software http://www.stclairsoft.com/
Fax (540)552-5898 ftp://ftp.stclairsoft.com/






Cocoa mail archive

