Path: 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 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