From: "Anthony.Appleyard" Organization: Materials Science Centre To: djgpp AT delorie DOT com Date: Fri, 20 Feb 1998 07:52:38 GMT Subject: Re: overlaying Reply-to: Anthony DOT Appleyard AT umist DOT ac DOT uk Message-ID: <1677E6B7CD1@fs2.mt.umist.ac.uk> Precedence: bulk Anthony.Appleyard wrote: > ... what is the progress on run-time overlaying for djgpp?, for when a big > program has a big subroutine that is called sometimes but not very often. Shawn Hargreaves replied:- > ... this just isn't a worthwhile or useful thing to bother with. In a > virtual memory environment, the DPMI server is already perfectly capable of > swapping out some rarely used subroutines to make room for other data, and > it can do this far more flexibly than any kind of manual overlay scheme that > you might implement yourself ... But presumably the program has to run a while before the DPMI server can tell that such a part of the program isn't obeyed much. If so, how can I give the DMPI server a helping hand here by telling it at the start of the program that e.g. "int* Han_Solo(int,FILE*,float(int,char)) isn't used much if at all, swop it out if you want to."?