Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!usenet!ogicse!intelhf!ichips!iwarp.intel.com!gargoyle!igloo!infopls!hoffmann From: hoffmann@infopls.chi.il.us (Robert Hoffmann) Newsgroups: comp.lang.pascal Subject: Re: Turbo pascal question on memory requirements Message-ID: Date: 10 Apr 91 01:48:32 GMT References: <1991Apr6.150859.9694@bnlux1.bnl.gov> Organization: INFOPLUS support, Wheeling, IL Lines: 27 kushmer@bnlux1.bnl.gov (christopher kushmerick) writes: > Now with an intelligent linking, I would think that this would not matter. > Am I right. Chris, although intelligent linking *will* create a smaller EXE file, while the code is being compiled, all of the memory required by all of the called units is needed. To use your two examples: 1. USES only the actual units: the total memory of all units in the USES line is needed. 2. USES units which USE the actual units: the total memory of BOTH sets of USEd units will be needed during compilation. In other words, it's much more effective to USE units as straightforwardly (without nesting) as possible. To get a better idea, watch the "free memory" indicator in the Compile window while it's working. You'll notice free memory decrease steadily... then *increase* as unnecessary functions are removed from memory (and the compiled EXE file). Rob (who has no signature, but can be reached at hoffmann@infopls.chi.il.us)