Comparison of Executable File Formats

This is a comparison of executable file formats.

Explicit processor declarations Arbitrary sections Metadata Digital signature String table Symbol table 64-bit Fat binaries Can contain icon
a.out No No No No Yes Yes Extension No No
COFF Yes by file Yes No No Yes Yes Extension No No
ELF Yes by file Yes Yes Yes Yes Yes Yes Extension Extension
PE Yes by file Yes Yes Yes Yes Yes Yes No Yes
Mach-O Yes by section Some Yes Yes Yes Yes Yes Yes No
SOM Unknown Unknown No No Unknown Yes No Unknown No
Hunk Unknown Yes Yes No No Yes No Yes No
MZ No Yes No No No No No No No
DOS COM No No No No No No No Extension No
CP/M-80 COM No Extension No No No No No Extension No
CP/M-86 CMD No Yes No No No No No No No
PEF Yes by file No No No Yes Yes No No No
ECOFF Yes by file Yes No No Yes Yes Yes No No
XCOFF Yes by file Yes No No Yes Yes Yes No No
NE Unknown Unknown Unknown No Unknown Unknown No No Yes
LX Unknown Unknown Unknown Unknown No Yes No No Yes

Among the above formats, the ones in most common use are PE (on Microsoft Windows), ELF (on Linux and most other versions of Unix) and Mach-O (on OS X and iOS).

Famous quotes containing the words comparison of, file and/or comparison:

    We teach boys to be such men as we are. We do not teach them to aspire to be all they can. We do not give them a training as if we believed in their noble nature. We scarce educate their bodies. We do not train the eye and the hand. We exercise their understandings to the apprehension and comparison of some facts, to a skill in numbers, in words; we aim to make accountants, attorneys, engineers; but not to make able, earnest, great- hearted men.
    Ralph Waldo Emerson (1803–1882)

    I have been a soreheaded occupant of a file drawer labeled “Science Fiction” ... and I would like out, particularly since so many serious critics regularly mistake the drawer for a urinal.
    Kurt Vonnegut, Jr. (b. 1922)

    What is man in nature? A nothing in comparison with the infinite, an all in comparison with the nothing—a mean between nothing and everything.
    Blaise Pascal (1623–1662)