Replying to a message of Chris Berkhout to Darryl Gregorash:
CB> Odd... with .exe's and .com's being treated the same
CB> by dos, with regards to memory allocation, I'd have
CB> thought that a linker directive would exist for both or
CB> none.
A .com is a binary image file. It is loaded into memory exactly as it appears
on disk, and there is no program header to do any reallocation of memory. A
.exe is not; segment relocation is necessary (eg. set up the stack segment)
so there must be a header, and that is where memory reallocation is done.
--- FleetStreet 1.21 NR
---------------
* Origin: BIG BANG Burger Bar: Regina SK Canada (1:140/86)
|