segments and Unix

Douglas H. Price dhp at ihlpa.UUCP
Wed Nov 19 08:53:06 AEST 1986


> Suppose every data structure were in its own segment. 
>
> Would this be worth doing? 

This is (if I understand correctly) exactly what happened in the object
oriented environment of the Intel 432 processor.  Each data (and code)
object could only be accessed in the appropriate context.  All objects not
explicitly referenced in the current execution context where turned off,
and would cause a detectable fault.  The problem with doing this on a
286, for instance is again the extreme overhead necessary to set up
(or check access permissions) on each data reference.  It is also not
a general solution on a 286; you can run out of segments too quickly.
It was the overhead (and the general confusion about how you programmed
object oriented hardware) that killed the 432 off. 
-- 
						Douglas H. Price
						Analysts International Corp.
						@ AT&T Bell Laboratories
						..!ihnp4!ihlpa!dhp



More information about the Comp.lang.c mailing list