Mail Archives: djgpp/1998/02/13/17:56:09
At 04:47 2/13/1998 GMT, Ashland High School wrote:
>Can someone please define what Coff and Stubs are?
COFF is Common Object File Format. It is a standard format for object and
executable files. DJGPP uses it.
Stubs are, in general, small pieces of code. In DJGPP's case, the `stub'
most commonly talked about is the executable loading stub. Since the
executables produced by the linker are COFF, which DOS does not understand,
a chunk of code about 2K in size is attached to the front. This contains an
EXE header, and basically executes like any other DOS EXE. Its job is to
switch to protected mode, load the COFF file attached to it, and start it.
Hope this helps.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -