www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1993/05/08/17:57:41

Date: Sat, 8 May 1993 17:24 EST
From: "Wonkoo Kim, EE, U. of Pittsburgh" <WKIM AT vms DOT cis DOT pitt DOT edu>
Subject: system(), dos free memory, memory allocation
To: djgpp AT sun DOT soe DOT clarkson DOT EDU

Hi.

My program failed when calling system(), and success or failing depends on how 
much memory was allocated before system() called.

I can't tell how much dos memory was available since djgpp/gcc compiled program 
seems to fool dos's mem command.  System("mem") from inside of my program 
didn't depend on the size of allocated data.(mem always said about 475KB free.)

My program(125KB .exe) loads image file(s) into memory. If a small image(16KB)
is loaded (I guess 460KB real memory free), system() worked well, but it failed
when a bigger image(64KB) is loaded (maybe 410KB dos memory free). 
(dos free memory estimation might be incorrect because of go32 behavior ??)

Borland C required about 200KB free to execute system() call, but djgpp/gcc 
seems to require much more than double.  How can it be worse?

What is the solution to this?  I.e. How can I give more dos free memory for
system() with djgpp/gcc??

Thanks for any help.

Regards,

Wonkoo Kim
EE, U. of Pittsburgh
wkim AT vms DOT cis DOT pitt DOT edu

- Raw text -


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