Powered by OPF
OPF Q&A Static Archive
133 questions · 234 answers · 193 comments · 172 tags · 118 contributors · archived August 2026
Archived copy. This is a static snapshot of the OPF community Q&A (qanda.digipres.org), preserved from its Question2Answer database. It is read-only and nothing here has been edited since capture in August 2026. To ask new questions, use the OPF community on GitHub.

How to distinguish 68k and PPC executables on classic Macintoshes?

1
votes
When getting a binary for a classic Macintosh operating system (up until version 9), how to distinguish for which processor architecture the binary was made?

1 answer

2
votes
✔ accepted

PowerPC executables store their code in the data fork, while 68k executables store their code in the resource fork. Examine the first 12 bytes of the data fork for the ASCII Joy!peffpwpc to determine the presence of PowerPC executable code. Examine the resource fork for the presence of a CODE resource to determine the presence of m68k executable code. Note that many MacOS executables are "fat binaries" which contain code for both architectures; these can be identified by the presence of a cfrg resource with an ID of 0.

Source: https://support.apple.com/kb/TA21606