Memory Models

Ray Seyfarth brs at beach.cis.ufl.edu
Sat Aug 12 03:39:55 AEST 1989


There is one significant reason to choose the small memory model if
it is sufficient:   pointers will not point outside the program's
address space.  This is important in MS/DOS, since there is no
memory protection.

A compact, large or huge model program can easily confuse a programmer
a long time if a stray pointer wipes out part of DOS.  The result can
be delayed for a while which adds to the confusion.

The Moral:  If you are trying to learn C, use the small model.
If you know C and want to write programs using a lot of data, choose
your own poison.
--
In Real Life:		UUCP: {gatech|mailrus}!uflorida!beach.cis.ufl.edu!brs
Ray Seyfarth		Internet: brs at beach.cis.ufl.edu
University of Florida	"Ninety percent of life is just showing up." Woody Allen



More information about the Comp.lang.c mailing list