Path: utzoo!utgpu!attcan!uunet!ficc!peter
From: peter@ficc.uu.net (Peter da Silva)
Newsgroups: comp.lang.c
Subject: Re: Memory Models
Keywords: Memory models,C
Message-ID: <5653@ficc.uu.net>
Date: 11 Aug 89 14:47:10 GMT
References: <562@dcscg1.UUCP> <10703@smoke.BRL.MIL>
Organization: Xenix Support, FICC
Lines: 27

In article <10703@smoke.BRL.MIL>, gwyn@smoke.BRL.MIL (Doug Gwyn) writes:
> That is not a C language issue.  It's kludgery introduced specifically
> in the IBM PC environment.

Emphatically agree.

> Unless you have a strong reason not to,
> just always use the large memory model.

Disagree. Always use the smallest model you can get away with, but if
the program won't work under a small model don't play games with
NEAR and FAR pointers... just go to a larger model. You will thank
yourself later when you get a real computer.

> (A strong reason would be
> compatibility with an existing object library, for example.)

The massive performance advantage of small model over large is a
strong reason... so long as you don't have to use kludges to fit
into small model.

After all, all of UNIX ran in small model once upon a time :->.
-- 
Peter da Silva, Xenix Support, Ferranti International Controls Corporation.
Business: peter@ficc.uu.net, +1 713 274 5180. | "The sentence I am now
Personal: peter@sugar.hackercorp.com.   `-_-' |  writing is the sentence
Quote: Have you hugged your wolf today?  'U`  |  you are now reading"