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