Article View: comp.sys.ibm.pc.programmer
Article #1249Re: system() memory usage under Turbo C
From: Mark Alexander
Date: Mon, 10 Jun 1991 23:55
Date: Mon, 10 Jun 1991 23:55
12 lines
1027 bytes
1027 bytes
Email bounced, sorry. In small data models, the startup code allocates a 64K segment for global and static data, the near heap, and the stack (plus code in tiny model). In large data models, heap space is allocated only as needed, and the stack occupies its own segment, typically 4K. This is why your program uses more space in small data models. You can reduce the amount of heap allocated in a small data model program by setting the _heaplen variable. The stack size is similarly controlled with _stklen. See Chapter 3 in the BC++ Library Reference for more information.
Technical Details
Message-ID:
<1991Jun10.235515.12544@borland.com>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!borland.com!alexandeReferences:
<22566@ogicse.ogi.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!swrinde!elroy.jpl.nasa.gov!decwrl!borland.com!alexande From: alexande@borland.com (Mark Alexander) Newsgroups: comp.sys.ibm.pc.programmer Subject: Re: system() memory usage under Turbo C Message-ID: <1991Jun10.235515.12544@borland.com> Date: 10 Jun 91 23:55:15 GMT References: <22566@ogicse.ogi.edu> Organization: Borland International Lines: 12