🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.ibm.pc.programmer
Article #1341

Re: Far code segments in the small or compact memory model

#1341
From: Gunther Wil Anderson
Date: Sat, 24 Feb 1990 07:22
13 lines
1229 bytes
In article <28396@necntc.nec.com> pec@necntc.nec.com (Paul Cohen) writes:
>I have a program which has just slightly too large a code size to fit in
>one segment.  It has one function which is executed only once so putting
>it into another segment seems a way to avoid changing to the Large
>memory model (which slows down execution noticeably).  

Use overlaying.  Read it up in your compiler manual or dos manual,
compile the offending routine in a separate file, and specify it as 
not part of the permanent code.  You may need to place something alse
in that state so there is some space for the two to swap between them.

					Gunther W. Anderson
					gunther@jhunix.hcf.jhu.edu
Technical Details
Message-ID: <4327@jhunix.HCF.JHU.EDU>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!aplcen!jhunix!gunther
References: <28396@necntc.nec.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!cs.utexas.edu!uunet!aplcen!jhunix!gunther
From: gunther@jhunix.HCF.JHU.EDU (Gunther Wil Anderson)
Newsgroups: comp.sys.ibm.pc.programmer
Subject: Re: Far code segments in the small or compact memory model
Keywords: far code, compact model
Message-ID: <4327@jhunix.HCF.JHU.EDU>
Date: 24 Feb 90 07:22:21 GMT
References: <28396@necntc.nec.com>
Reply-To: eisen@jhunix.UUCP (Gunther Wil Anderson)
Distribution: usa
Organization: The Johns Hopkins University - HCF
Lines: 12