delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/20/04:15:27

From: G DOT DegliEsposti AT ads DOT it
To: djgpp AT delorie DOT com
Message-ID: <C12565B1.0031FBE2.00@vega.ads.it>
Date: Fri, 20 Feb 1998 10:11:20 +0100
Subject: Re: Re: overlaying
Mime-Version: 1.0




>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
Actually the dpmi server loads only the parts of the program/data that are
required at a given moment. These parts remain in memory only if they are
called/used often enough, so the problem of "usefulness accounting" is
resolved automagically by the memory manager, and you don't have to worry.

>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."?

It is not necessary at all: if it isn't used much it will eventually get
swapped
out by the memory manager. If it isn't used at all then it will not even be
loaded into memory.

ciao
  Giacomo






- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019