Re: Bind features
- Posted by Bernie Ryan <bwryan at PCOM.NET> Jun 30, 1999
- 644 views
>> Lucius L. Hilley III You Wrote: >> .COM files are completely loaded into memory. You must have more memory >> than the size of the file to load a .COM file. .COM are loaded into memory to run at offset 100H and the only extra memory required is for the PSP which is 256 bytes. >> .EXE files are NOT loaded into memory. The header to a .EXE file is >> loaded. The header then tells the file offset of the program code and >> how large that code is. One could write a program, compile it, and then >> attach a huge bitmap to the end of the program and not effect in any >> way the amount of the code that is loaded into memory. This means that >> unused data at the end of a .EXE file won't require more memory for the >> program to be loaded. Just may Hard Drive space for it to reside. This is not correct. When an EXE file is loaded into memory it can be located anywhere in memory. The loader will look at the header which contains the size and offsets required to load it. It then loads it into memory at the available memory location correcting and fixing the offsets to match that location. The .COM file is fixed to run at one location the EXE is RELOCATABLE to run in any location in memory. BUT the both are LOADED INTO MEMORY. Bernie