Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!cmcl2!yale!husc6!mit-eddie!rutgers!princeton!allegra!ulysses!sfmag!sfsup!shap From: shap@sfsup.UUCP (J.S.Shapiro) Newsgroups: comp.sys.intel,comp.lang.c Subject: Re: segments and Unix Message-ID: <865@sfsup.UUCP> Date: Tue, 25-Nov-86 03:02:48 EST Article-I.D.: sfsup.865 Posted: Tue Nov 25 03:02:48 1986 Date-Received: Tue, 25-Nov-86 10:03:17 EST References: <13802@amdcad.UUCP> Organization: AT&T Information Systems, Summit N.J. Lines: 16 Xref: mnetor comp.sys.intel:59 comp.lang.c:159 > Suppose every data structure were in its own segment. Phil, it's a useful debugging technique, and it does provide protection and sharing, but in real code the overhead of swapping the segment registers in and out would be too high. On the other hand, It ought to be possible (designing on horseback now) to generate it that way with some appropriate symbol table and go through and merge the segments you believe to eliminate the segment register swaps. The problem I see is getting into some nontrivial expression and thrashing the segment registers around, along with the consequent changes andinvalidations in the TLB. This would blow the mmu firmly out of the water, if i remember the design right. It's been about 2 years since I looked. Jon Shapiro