🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7016

system() memory usage under Turbo C

#7016
From: Francis Moraes
Date: Mon, 10 Jun 1991 05:57
26 lines
1202 bytes
I compiled the following program using Turbo C under all of its memory
models:

main()
{
   system("vtsr");
}

Vtsr is a program that lists the programs in memory and the amount of memory
allocated to it. The amount of memory in kilobytes used by this program are
given below for each of the memory models:

model	memory usage
====================
tiny	64.2
small	66.7
compact	9.0
medium	66.8
large	10.0
huge	10.0

I think it is interesting that the memory models that use far pointers for
data have smaller memory usage than those with near data pointers. Does anyone
know why this is so?  The same problem exists with the exec() function. I
hope this isn't a stupid question. Send me mail or post as you see fit. If
I get enough mail I will post a summary.
Technical Details
Message-ID: <22566@ogicse.ogi.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!ogicse!atmos!francis

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!cs.utexas.edu!uunet!ogicse!atmos!francis
From: francis@atmos.cse.ogi.edu (Francis Moraes)
Newsgroups: comp.os.msdos.programmer
Subject: system() memory usage under Turbo C
Message-ID: <22566@ogicse.ogi.edu>
Date: 10 Jun 91 05:57:38 GMT
Sender: news@ogicse.ogi.edu
Organization: Oregon Graduate Institute, Atmospheric Sciences, Beaverton, OR
Lines: 26