Path: utzoo!attcan!uunet!lll-winken!ames!pasteur!ucbvax!decwrl!hplabs!hpfcdc!hpldola!hpctdlb!hpctdls!wei From: wei@hpctdls.HP.COM (Bill Ives) Newsgroups: comp.lang.pascal Subject: Re: Turbo-Pascal and memory models Message-ID: <390001@hpctdls.HP.COM> Date: 6 Jan 89 15:14:57 GMT References: <13160@duke.cs.duke.edu> Organization: Hewlett-Packard CTD, Colo. Spgs. Lines: 19 Turbo pascal 5.0 has only large memory model as far as I know. The restriction on code and data is 64K each per unit. Thus if you require more than 64K worth of global variables, extend their definition accross units -- this isn't really much to ask since you should modularize your programs anyway. Further, if you absolutely require a data structure larger than 64K, I believe you can use new() ( or some special routine, I don't have my manuals here ) to allocate it from the heap, which is limited only by the amount of memory in your system. Hope this helps.. Bill Ives HP Colorado Telecommunications Division Disclaimer: These are my opinions only, blah, blah....