delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/12/18/06:09:42

Date: Thu, 18 Dec 1997 13:09:30 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: GAMMELJL AT SLU DOT EDU
cc: djgpp AT delorie DOT com
Subject: Re: bump up internal table size
In-Reply-To: <01IR9XY05D6QBL34WT@SLU.EDU>
Message-ID: <Pine.SUN.3.91.971218130849.1611C-100000@is>
MIME-Version: 1.0

On Wed, 17 Dec 1997 GAMMELJL AT SLU DOT EDU wrote:

> How do I change the defaults (presumably the numbers in []) in order
> to bump up internal table size.

Enlarge this one:

> Paragraphs of memory for extra CWSDPMI internal heap ? [128]

You will need to use trial and error to get to the right size, since
it depends on how the total memory allocated by your program is
divided into different-size chunks.  A typical way is to enlarge the
number by a factor of 2 until your program stops failing due to memory
allocations.

> Remember that I want to achieve 128+128 (physical memory + virtual
> memory) in "plain" DOS.

Total amount of memory is not the issue.  You should be able to
allocate 128MB in one call without changing anything in the CWSDPMI
parameters (use `calloc', not `malloc' to test that).  It is the
allocation in small chunks that requires to bump the internal heap
size of CWSDPMI.

- Raw text -


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