www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/07/12:23:26

Date: Sun, 7 Nov 1999 17:26:43 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Frederic Cazenave <cazenave AT radar DOT mcgill DOT ca>
cc: djgpp AT delorie DOT com
Subject: Re: memory
In-Reply-To: <38235938.2C67@radar.mcgill.ca>
Message-ID: <Pine.SUN.3.91.991107172620.12805f-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Fri, 5 Nov 1999, Frederic Cazenave wrote:

> What is the difference between dos memory and
> linear memory?

DOS memory is the part of memory below the 1MB mark.  It is also known
as the ``conventional memory''.

As to ``linear memory'', I don't know what that is.  Perhaps if you
explain in what context did you see that term, I could try guessing
what does that mean.

> When I do a dpmi_get_free_memory_info and if
> I malloc maximum_locked_page_allocation_in_pages is
> there any dos_memory free or not ?

The maximum locked page allocation usually doesn't include DOS memory
(which is already locked).

> What's the better way :
> 
> to make a malloc or to use dpmi_allocate

Use malloc, it is much easier.  Allocation through DPMI is very
complicated and should not be used unless you cannot do it with
malloc.

- Raw text -


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