On , Chris Berkhout wrote to Darryl Gregorash :
CB> CB> Well behaved programs will resize themselves
CB> CB> I guess that with .EXE's there is some kind of compiler
CB> CB> directive or it auto calculates the size, but i don't
CB> CB> exactly know.
CB>
CB> DG> Linker directive actually; the code to resize allocated memory is
CB> DG> placed in the .exe loader, which is written at link time.
CB>
CB> So the code for that is run after the .EXE is started,
CB> rather than DOS doing it during loading based on values from the header
The EXE header (for msdos) contains two values. One value is the
minumum amount of memory required to run. The other is the max it
will ask for if it's available at load time. Most linkers will set
this to maximum memory by default unless you specify otherwise.
Glen..
--- ProBoard v2.16 [Reg]
---------------
* Origin: NC/NEC SEWAnet, Bucolic Fair (1:3407/25)
|