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 and/or file:

    Clay answered the petition by declaring that while he looked on the institution of slavery as an evil, it was ‘nothing in comparison with the far greater evil which would inevitably flow from a sudden and indiscriminate emancipation.’
    State of Indiana, U.S. public relief program (1935-1943)

    A common and natural result of an undue respect for law is, that you may see a file of soldiers, colonel, captain, corporal, privates, powder-monkeys, and all, marching in admirable order over hill and dale to the wars, against their wills, ay, against their common sense and consciences, which makes it very steep marching indeed, and produces a palpitation of the heart.
    Henry David Thoreau (1817–1862)