🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.msdos.programmer
Article #563

Mixed Memory Model Question

#563
From: Tom West
Date: Thu, 13 Sep 1990 18:13
20 lines
1401 bytes
  I have a question about mixing memory models.  I have a large program that
has three very separate parts to it.  While each part is less than 64k, the
total is much larger.  Since there are very few calls that cross the
boundary of the three blocks, I would like to make each section small model
if possible.  Unfortunately, I'm not sure how this is done.  My guess is:

  Each section is compiled small model, but any routines that are called
from another section of the program are declared far.  Furthermore, one
must somehow make sure that all parts of a single section are placed in
the same segment.  I'm not sure what options one would link it with.

  The assumption is that the total program has less than 64k of data.  If
it was larger, then one would compile each section with the compact model.
I am using MSC 6.0, but I assume that the experience is transferrable.

  Could anyone experienced with mixing memory models either confirm or 
correct this?  Thanks.

				Tom West 
			    west@turing.toronto.edu
Technical Details
Message-ID: <1990Sep13.141323.10882@jarvis.csri.toronto.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!turing.toronto.edu!west

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!turing.toronto.edu!west
Newsgroups: alt.msdos.programmer,comp.os.msdos.programmer
From: west@turing.toronto.edu (Tom West)
Subject: Mixed Memory Model Question
Message-ID: <1990Sep13.141323.10882@jarvis.csri.toronto.edu>
Organization: CSRI, University of Toronto
Date: 13 Sep 90 18:13:23 GMT
Lines: 20