Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!msuinfo!sharkey!bnlux1.bnl.gov!kushmer From: kushmer@bnlux1.bnl.gov (christopher kushmerick) Newsgroups: comp.lang.pascal Subject: Turbo pascal question on memory requirements Message-ID: <1991Apr6.150859.9694@bnlux1.bnl.gov> Date: 6 Apr 91 15:08:59 GMT Distribution: na Organization: Brookhaven National Laboratory Lines: 66 I use a large subroutine library for the front end of programs that I write. (If interested it is technojock turbo toolkit - quite good). I have a question which is motivated by the fact that in my AT with no ems, my programs quickly run out of memory inside the integrated environment due to the fact that I use 8 moderatly large size units just for the aforementioned front end. In the following, when upper case, PROGRAM means the pascal program ie program uses begin end. _Not_ the resultant executable. USES means uses in the turbo pascal sense. Ok. Here we go with the question. Which would we expect to take more memory: A program which 1: USES all of the technojock units. 2: A program which itself does not use the technojock units, but which uses my own units where all of the work is done, and which in turn use the technojock units. In case 1, all of the work is done by procedures in the program. In case 2, the work has been split up into logically separate units. In case 2, the program is just a caller loop and knows nothing about, for example, the technojock stuff. In case 1 for each of the technojock units, there is only one ionstance of the statment USES tjockunit. In case 2, there are many. Now with an intelligent linking, I would think that this would not matter. Am I right. However I am currently using case 2, and it does seem to matter. Ie I am running out of memory. Perhaps my program is just to big. But before I go to the command line compiler and turbo debugger, I want to amke sure that there is not some simpler way tio decrease memory requirements. How much will I win by turning of debugging in some of the units? Local symbols? Thanks for listening. -- Chris Kushmerick kciremhsuK sirhC kushmer@bnlux1.bnl.gov <===Try this one first kushmerick@pofvax.sunysb.edu