Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amelia!eagle!news From: mikef@sarah.lerc.nasa.gov (Mike J. Fuller) Newsgroups: comp.emacs Subject: Re: GNU Emacs memory usage on Sun 3/4. Message-ID: <1990Feb3.180749.15772@eagle.lerc.nasa.gov> Date: 3 Feb 90 18:07:49 GMT References: <1990Feb3.161555.13925@athena.mit.edu> Organization: NASA Lewis Research Center, Cleveland, OH Lines: 16 In article <1990Feb3.161555.13925@athena.mit.edu> drk@athena.mit.edu (David R Kohr) writes: >Is each running copy of Emacs sharing the text segment with all the other >running copes (which is perfectly feasible, for non-self-modifying >code), or is something else happening? Yes, SunOS 4.* has shared text. The text is also demand-paged from the executable (unless you make it a pure executable by using the -n option on ld when you link it). And about self-modifying code -- the text segment is read-only (unless you use the -N option on ld to make it read-write). I don't know about SunOS < 4.*, BSD or SysV. /-----------------------------------------------------------------------------\ | Mike J. Fuller |Internet: mikef@sarah.lerc.nasa.gov |You'd be paranoid, | |----------------| mikef@zippysun.math.uakron.edu|too, if everyone | |/\/\/\/\/\/\/\/\|Bitnet: r3mjf1@akronvm |was out to get you!| \-----------------------------------------------------------------------------/