www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/29/23:32:28

From: j DOT aldrich6 AT genie DOT com
Message-Id: <199604300022.AA218823737@relay1.geis.com>
Date: Tue, 30 Apr 96 00:04:00 UTC 0000
To: djgpp AT delorie DOT com
Mime-Version: 1.0
Subject: Re: V2 vs. 1.12m5

Reply to message 4262283    from SOLYOM AT EIK DOT BM on 04/29/96  7:05PM


[snip]

>So my question really is this: What are the differences between the compilers
>in V1.12
>and in V2 that can cause different behaviour with the same source? When can I
>expect a
>corrected CWSDPMI, with which I can allocate and deallocate as many times I
>like?

As I understand it, CWSDPMI maintains a limit of about 1K malloc'd regions
of memory simultaneously.  Ask Charles Sandmann for details on this.

However, your problem may be simply solved by just allocating a couple
of huge chunks of memory at once and breaking them up into individual
portions for each object you create.  If you need 150MB, grab 15 10MB regions,
or 150 1MB regions.  This will also probably improve your program's
performance, since calls to malloc() are slow.  A program I am working
on has just such an allocation mechanism - I'll give you samples if you want.

John

- Raw text -


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