Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site brl-tgr.ARPA Path: utzoo!watmath!clyde!burl!ulysses!gamma!epsilon!zeta!sabre!bellcore!decvax!genrad!mit-eddie!think!harvard!seismo!brl-tgr!tgr!horus!how@SU-ISL.ARPA From: how@SU-ISL.ARPA Newsgroups: net.micro Subject: Re: Small, Medium and Large Models Message-ID: <11613@brl-tgr.ARPA> Date: Mon, 15-Jul-85 22:56:12 EDT Article-I.D.: brl-tgr.11613 Posted: Mon Jul 15 22:56:12 1985 Date-Received: Thu, 18-Jul-85 07:39:52 EDT Sender: news@brl-tgr.ARPA Lines: 17 Specifically: small model means that all addresses can be specified with only a 16bit offset; large model means that it requires a 16bit offset and 16bit segment number (i.e., more than 64k addressability). since this can be true of either the data or the code space independently, some compilers provide you with four choices. note, however, with some C compilers this does NOT necessarily mean that arrays can be larger than 64k, since the arithmetic is usually restricted to the 16bit offset part. this also means that subtracting pointers that are in different segments in a program compiled using a large data model may not work. both large and small work equally in code space, except that large model calls will be slower. hope this is specific enough. Dana How