From: Azmodeus Newsgroups: comp.os.msdos.djgpp,comp.programming,comp.graphics.rendering.misc Subject: Re: Help!!! Something to do with Imagine 4.0 and Programming... Date: Sun, 20 Dec 1998 17:35:29 -0600 Organization: 7 men on a dead mans chest, Yo ho ho and a bottle of rum Lines: 32 Message-ID: <367D89C1.C59E34D3@geocities.com> References: <367A62D8 DOT A849A5F8 AT iafrica DOT com> NNTP-Posting-Host: pm1-sgf-44.dialnet.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ns2.dialnet.net 914196937 21268 (None) 208.223.16.108 X-Complaints-To: news AT news DOT dialnet DOT net X-Mailer: Mozilla 4.07 [en] (X11; I; Linux 2.0.36 i586) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com The Jorgensen Family wrote: > > Um yes. Here's the prob. I only have 24mb of ram and 'cause of this > Imagine 4.0 for Dos sometimes screws up on large complex objects because > there's no more meory for 'em. And there's no way I can get the cash to > buy more besides becomming a criminal or something. So I was wondering. > Has anyone ever written a program the fools computer programs(any or > certain programs) into believing a that a file on your hd is actually, > say, the extra 100mb of ram that you just "got"? I'm not talking about > windows virtual mem either. This would be a program that is very low > level and works without the other programs actually knowing it, so that > the other programs think that there is more memory than there really is > by making a sort of swap file on the hd. If no one has written such a > prog then is it possible? Yeah, it's possible, just a royal PITA (pain in the ass). To do that you would have to append some code to the OS scheduler - as far as I know, there's no way to "fool" your machine into thinking it has more RAM than it does. I suppose if you really wanted to get down-n-dirty, you could patch and play with command.com to mess with the way it accesses memory, instead having it access only EMS or XMS, then using the swap file. The rest of RAM would be used to hold programs and locations of data variables in the swap file. If you want a real example of how to do swapfiles, read the linux kernel source code (in C). It's good for that kind of "learning experience" thing. -- ============================================================================ opinions expressed are my own but they should be everybody's