Version: 1.0

Posted: 2006-02-07

Build Requirements: Mac OS X

Runtime Requirements: Mac OS X

View Source Code:

Download Sample (“CheckExecutableArchitecture.zip”, 9.0K)
Download Sample (“CheckExecutableArchitecture.dmg”, 65.8K)



Description

This sample deals with the problem of determining in advance whether a particular Mach-O executable contains a version suitable for executing on a given processor architecture. For example, an application running on an Intel-based Macintosh may wish to examine a set of potential plugins, because it suspects that some of them may be PowerPC-only and thus not suitable for loading. The code here may also be instructive and relevant for those who wish to understand the structure of Mach-O executables.

Document Revision History

Date Notes
2006-02-07Determine whether a particular Mach-O executable contains a version suitable for executing on a given processor architecture.

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.