Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!beach.cis.ufl.edu!brs
From: brs@beach.cis.ufl.edu (Ray Seyfarth)
Newsgroups: comp.lang.c
Subject: Re: Memory Models
Keywords: Memory models,C
Message-ID: <20728@uflorida.cis.ufl.EDU>
Date: 11 Aug 89 17:39:55 GMT
References: <562@dcscg1.UUCP> <1633@crdgw1.crd.ge.com>
Sender: news@uflorida.cis.ufl.EDU
Reply-To: brs@beach.cis.ufl.edu ()
Distribution: usa
Organization: UF CIS Department
Lines: 16

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@beach.cis.ufl.edu
University of Florida	"Ninety percent of life is just showing up." Woody Allen