Anyone knowing about EXE-page swapping???

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
Peter_Vigren

Anyone knowing about EXE-page swapping???

Post by Peter_Vigren »

I wonder how the OS knows when an EXE need to swap its page... anyone understanding what I am talking about now??? (An EXE can be larger than 64 kb because it swap or something like that...)

I would appreciate any information regarding this issue!!!
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: Anyone knowing about EXE-page swapping???

Post by df »

dos .EXE files can be as large as you like. the memory image can only be as much as can hold (ie: dos, 600 odd kb...) but exe's have overlays, thus you can have an .exe file that is 100mb big and it will still run. all extended exe's have stubs, etc. that is just the code, the overlay is the pmode stuff (dos32, pmodew, watcom, djgpp, etc)..

it does not 'page' it out to disk + read more etc
-- Stu --
Peter_Vigren

Re: Anyone knowing about EXE-page swapping???

Post by Peter_Vigren »

dos .EXE files can be as large as you like. the memory image can only be as much as can hold (ie: dos, 600 odd kb...) but exe's have overlays, thus you can have an .exe file that is 100mb big and it will still run. all extended exe's have stubs, etc. that is just the code, the overlay is the pmode stuff (dos32, pmodew, watcom, djgpp, etc)..

it does not 'page' it out to disk + read more etc
But... when the code is executed and it reaches the end of the memory image... how do I detect that?
User avatar
df
Member
Member
Posts: 1076
Joined: Fri Oct 22, 2004 11:00 pm
Contact:

Re: Anyone knowing about EXE-page swapping???

Post by df »

the size of the memory image is in the header of the .exe
-- Stu --
Peter_Vigren

Re: Anyone knowing about EXE-page swapping???

Post by Peter_Vigren »

the size of the memory image is in the header of the .exe
So you are saying that I must load a page from the exe and put for example the code for Int 99h after that page and let Int 99h be the interrupt that load the next page into the file?? How do I know when that one page is accessing something on another page (for example a string)?
Post Reply