Memory Models

Peter da Silva peter at ficc.uu.net
Sat Aug 12 00:47:10 AEST 1989


In article <10703 at smoke.BRL.MIL>, gwyn at 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 at ficc.uu.net, +1 713 274 5180. | "The sentence I am now
Personal: peter at sugar.hackercorp.com.   `-_-' |  writing is the sentence
Quote: Have you hugged your wolf today?  'U`  |  you are now reading"



More information about the Comp.lang.c mailing list