www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/14/22:27:28

Xref: news2.mv.net comp.os.msdos.djgpp:4980
From: Shawn Hargreaves <slh100 AT york DOT ac DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: A few more DJGPP Questions...
Date: Fri, 14 Jun 1996 15:38:53 +0100
Organization: The University of York, UK
Lines: 27
Message-ID: <Pine.SGI.3.91.960614152746.20838C-100000@tower.york.ac.uk>
NNTP-Posting-Host: tower.york.ac.uk
Mime-Version: 1.0
In-Reply-To: <834748248snz@flag.demon.co.uk>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

On Fri, 14 Jun 1996, Ben Ashley wrote:

> problems there.  Does allegro use the wonderful DJGPP memory management? 
> 
> Rhide told me my memory situation was '8M / 6M'.  Does this really 
> mean I can finally write a program which is graphic intensive and may 
> need to store megabytes of graphic/sound data?  I do hope so...

Memory management isn't something you have to use as such, it just _is_ :-)
Forget about segments and 640k limits: however much RAM you have in your 
machine, that is how much you can use. And if you go on allocating RAM 
beyond that amount, no problems, virtual memory will be used instead.

So yes, there is no problem loading up several megs of graphics. Sound data 
is a bit different becuase it gets locked and can't be swapped out to 
disk, thus samples can't use virtual memory, but you can fit a lot into 8 
megs of physical RAM in any case.

Try malloc(1024*1024*64) sometime, it works great :-)


/*
 *	Shawn Hargreaves.        Why is 'phonetic' spelt with a ph?
 *	Check out Allegro and FED on http://www.york.ac.uk/~slh100/
 */


- Raw text -


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