system() memory usage in Turbo C
Francis Moraes
francis at atmos.cse.ogi.edu
Mon Jun 10 16:07:28 AEST 1991
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.
francis at atmos.ogi.edu
More information about the Comp.lang.c
mailing list