TIP: Click on subject to list as thread! ANSI
echo: 80xxx
to: CHRIS BERKHOUT
from: GLEN MCNABB
date: 1998-01-02 19:44:00
subject: Memory Allocation

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)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.