🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2222

Re: Mixed Memory Model Question

#2222
From: Edward John Kalenda
Date: Fri, 14 Sep 1990 07:10
14 lines
1082 bytes
If I remember correctly, this is how I did it before. I compiled using
the medium and large models so the code is always _far. By declaring
all routines that were not called from other modules as static near,
they were called using near calls. In medium and large model, MSC puts
each source module in it's own segment. The segment names are something
like _TEXT_model-name and _DATA_module-name. Makeing functions static
lets the compiler know that they will never be called from another
segment, allowing near calls.

The reason for compiling in medium or large is that the runtime functions
will be called from several different segements and need far calls.

Ed
ekalenda@cup.portal.com
Technical Details
Message-ID: <33890@cup.portal.com>
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!fernwood!portal!cup.portal.com!ekalenda
References: <1990Sep13.141323.10882@jarvis.csri.toronto.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!fernwood!portal!cup.portal.com!ekalenda
From: ekalenda@cup.portal.com (Edward John Kalenda)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Mixed Memory Model Question
Message-ID: <33890@cup.portal.com>
Date: 14 Sep 90 07:10:19 GMT
References: <1990Sep13.141323.10882@jarvis.csri.toronto.edu>
Organization: The Portal System (TM)
Lines: 14