Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site watmath.UUCP Path: utzoo!watmath!wjafyfe From: wjafyfe@watmath.UUCP (Andy Fyfe) Newsgroups: net.micro Subject: Re: Re: Small, Medium and Large Models Message-ID: <16109@watmath.UUCP> Date: Thu, 8-Aug-85 14:13:13 EDT Article-I.D.: watmath.16109 Posted: Thu Aug 8 14:13:13 1985 Date-Received: Fri, 9-Aug-85 04:44:29 EDT References: <736@dataio.UUCP> <248@kitty.UUCP> Reply-To: wjafyfe@watmath.UUCP (Andy Fyfe) Organization: U of Waterloo, Ontario Lines: 14 Summary: > >Small all code in one 64K segment > > all data in one 64K segment (including stack) > (in Lattice & Microsoft C: all code & data in 1 64K seg) As far as the compiler is concerned, these need not be different. It simply keeps the data and code separate, and uses 64k addressing for everything. It is then up to the loader to decide whether to use a single 64k segment or not. In the case of Microsoft Xenix, the loader will split the code and data in the middle and large models only by default, but will also split them in the small model if you give it the right magic option (either to cc, or ld directly). --Andy Fyfe ...!{decvax, allegra, ihnp4, et. al}!watmath!wjafyfe wjafyfe@waterloo.csnet