Executable Formats: Difference between revisions

From OSDev.wiki
Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Combuster (talk | contribs)
Removed PFR tag
changed around introduction a bit.
Line 1: Line 1:
The number of different executable file types is as many and varied as the number of different image and sound file formats. Every Operating System seems to have one or more executable file types unique to itself.
An executable format is the file format created by the compiler and linker, and that is then loaded into memory by the operating system's loader. The number of different executable file types is as many and varied as the number of different image and sound file formats. This page gives an introduction to the theory behind these formats.

== A few terms ==


== Definitions ==
* TEXT is the actual executable code area,
* TEXT is the actual executable code area,
* DATA is "initialized" data,
* DATA is "initialized" data,

Revision as of 21:54, 22 October 2007

An executable format is the file format created by the compiler and linker, and that is then loaded into memory by the operating system's loader. The number of different executable file types is as many and varied as the number of different image and sound file formats. This page gives an introduction to the theory behind these formats.

Definitions

  • TEXT is the actual executable code area,
  • DATA is "initialized" data,
  • BSS is "un-initialized" data.

The BSS (Block Started by Symbol) needn't to be present in an executable file. At load-time, the loader will still allocate memory for it and wipes this memory with zeros (this is assumed by C programs, for instance).

Related Pages

Articles

External Links