Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!claris!apple!keith From: keith@Apple.COM (Keith Rollin) Newsgroups: comp.sys.mac.programmer Subject: Re: Max. no. of code segments Message-ID: <29408@apple.Apple.COM> Date: 23 Apr 89 01:29:53 GMT References: <53100005@uxh.cso.uiuc.edu> Organization: Apple Computer Inc, Cupertino, CA Lines: 24 In article <53100005@uxh.cso.uiuc.edu> thinfilm@uxh.cso.uiuc.edu writes: > > What is the largest number of segments allowed in an application on the >mac and what rules should one work by for this. I am specifically talking >about code segments here. I would like to partition the code into logical >elements to optimize memory use. If I did so each segment would by about >15-25K and there would be on the order of 150 of them (yes this is a lot of >code). Is this liable to break anything or can the mac handle it. Which >tn should be looked at etc. Thanks for any help you can offer. > thinfilm@uxh.cso.uiuc.edu A 3 Meg program!!! Wow!!! There shouldn't be any problem with this number of code segments, per se. However, this is a limit placed on the number of inter-segments calls you can make. For more information on this, see Technote #220: Segment Loader Limit- ations. ------------------------------------------------------------------------------ Keith Rollin --- Apple Computer, Inc. --- Developer Technical Support INTERNET: keith@apple.com UUCP: {decwrl, hoptoad, nsc, sun, amdahl}!apple!keith "Argue for your Apple, and sure enough, it's yours" - Keith Rollin, Contusions