Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!husc6!genrad!daf From: daf@genrad.com (David A. Fagan) Newsgroups: comp.sys.mac.programmer Subject: where does static data go when code segs are unloaded? Message-ID: <17278@genrad.UUCP> Date: 16 Feb 89 15:37:48 GMT Sender: news@genrad.UUCP Reply-To: daf@genrad.UUCP (David A. Fagan) Organization: GenRad, Inc., Concord, Mass. Lines: 17 In C, global data is compiled as part of the executable image, right? So what happens when the Memory Manager decides it's time to clean house? Some guesses: 1) Code segments aren't simply purged, they're saved back to disk 2) Global data is clobbered when the segment in which it was declared is unloaded. 3) Mac compilers are smart enough to keep all global data in seperate resources which cannot be purged. My money is on #3, does anyone know for sure? Thanks, email is sufficient. Dave Fagan genrad.otter.daf