Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!sunkisd!uunet!munnari!bruce!goanna!koel!cit5!yarra!ditmela!diemen!tasis!charles From: charles@tasis.utas.oz (Charles Lakos) Newsgroups: comp.sys.mac.programmer Subject: Re: 2 MacApp questions Summary: Doesn't seem to help Keywords: segment sizes Message-ID: <823@tasis.utas.oz> Date: 14 Feb 89 23:39:24 GMT References: <816@tasis.utas.oz> <25319@apple.Apple.COM> Organization: Elec Eng & Comp Sci, Uni of Tasmania, Australia Lines: 37 In article <25319@apple.Apple.COM>, keith@Apple.COM (Keith Rollin) writes: > [stuff deleted] > > > >2. Supplied units not properly segmented? > > > >In testing a small application (somewhat akin to the MacApp DrawShapes > >sample program), the code segment 'GRes' is too large if I compile in > >debug mode. The supplied units I include are UObject, UList, UMacApp, > >UPrinting, UTEView and UDialog. Has anyone come across this problem? > >Any solution (apart from the obvious one of compiling in nodebug mode)? > > > > Are you putting any of your routines/methods into either the MARes or MAScroll > segments? It is these segments that are put into GRes during final linking. > Looking at the Nothing sample, I see that it is fairly substantial already, > weighing in at over 29K. > Firstly, thank-you for your response - I am responding by news because I couldn't get through with mail. Secondly, I am not aware of putting any of my methods into MARes or MAScroll. In fact, I just did a test - I took the DrawShapes sample program, requested the inclusion of UTEView and UDialog, added a couple of statements to reference methods in these units, and attempted to build it with 'debug' set. The segment GRes was too large. I can only conclude from this simple test that my original assumption was correct, namely that the supplied units were not properly segmented and that there is little I can do about it. Charles Lakos. ACSnet: charles@tasis.utas.oz ARPA: charles%tasis.utas.oz@uunet.uu.net UUCP: {enea,hplabs,mcvax,uunet,ukc}!munnari!tasis.utas.oz!charles Snail: Computer Science Dept., University of Tasmania, GPO Box 252C, Hobart, TAS, 7001, Australia.