www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/06/22/22:30:16

From: "Charles Sandmann" <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: How do I allocate more than 64MB with CWSDPMI under DOS
Date: Mon, 22 Jun 1998 20:45:00
Organization: Aspen Technology, Inc.
Lines: 10
Message-ID: <358ec24c.sandmann@clio.rice.edu>
References: <358F34B3 DOT 1AEF AT sn DOT no>
Reply-To: sandmann AT clio DOT rice DOT edu
NNTP-Posting-Host: dmcap2.aco.aspentech.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

> installed the "himem.sys" driver from Win95. At my DOS prompt mem tells
> me that I have 96MB of XMS memory.

> I've configured cwsdpmi so that swapping is disabled. But the program
> does not work. I am not able to allocate more than 64MB of memory. It
> looks as if cwsdpmi refuses to let me have more than 64MB without
> using virtual memory. 

Don't use malloc() which pads requests to power of 2 - use sbrk() for
large allocations (4096 byte multiple preferred).

- Raw text -


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