comp.lang.ada
 help / color / mirror / Atom feed
From: "Robert I. Eachus" <rieachus@comcast.net>
Subject: Re: load and use a ".o" file?
Date: Tue, 23 Dec 2003 12:48:25 -0500
Date: 2003-12-23T12:48:25-05:00	[thread overview]
Message-ID: <T6adndNbMcR34nWiRVn-tw@comcast.com> (raw)
In-Reply-To: <cGKFb.425$b77.401@dfw-service2.ext.raytheon.com>

Mark H Johnson wrote:

> No, they were actually subroutine calls. The compiler generated slightly 
> different code for an "in segment" call and a "cross segment" call due 
> to the indirection. The glue code (to do the lookup) was basically a 
> system service done by the OS to facilitate activation of new segments.

Technically not correct.  The compiler could "in line" some local calls, 
but the binder couldn't.   What happened was that when a segment called 
an entry point for which the local link was null, it trapped.  The trap 
routine tried to snap the link using the current environment, and if it 
failed, bounced out to the user.  You literally could, when an error of 
this type occurred, change the search paths, or write the missing 
routine, compile it, then continue from the condition.  Done it myself....

> By the way, when I say segment - I mean a segment of the same address 
> space, not a partition. Think to the 386 processor where you have 32 k 
> segments in certain processing modes. On Multics, the segments were 256 
> Kwords (1 Mbyte) in size which worked quite well in practice.

Correct.  As I said in another post, there were multisegment files which 
allowed you to have objects larger than 1 Meg.  But in practice they 
were very infrequently used.

-- 
                                           Robert I. Eachus

"The war on terror is a different kind of war, waged capture by capture, 
cell by cell, and victory by victory. Our security is assured by our 
perseverance and by our sure belief in the success of liberty." -- 
George W. Bush




  reply	other threads:[~2003-12-23 17:48 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-12-18 23:31 load and use a ".o" file? lifetime n00b
2003-12-18 23:59 ` Stephen Leake
2003-12-19  1:51 ` tmoran
2003-12-19 15:28   ` lifetime n00b
2003-12-19 18:08     ` Stephen Leake
2003-12-20 20:12       ` lifetime n00b
2003-12-20 21:15         ` tmoran
2003-12-20 23:41           ` lifetime n00b
2003-12-21  7:15             ` tmoran
2003-12-21 11:46         ` Simon Wright
2003-12-21 13:57         ` Stephen Leake
2003-12-22 19:29           ` lifetime n00b
2003-12-22 20:49           ` Jon S. Anthony
2003-12-22 23:15             ` Stephen Leake
2003-12-23  1:36               ` tmoran
2003-12-27 22:55               ` Jon S. Anthony
2003-12-28  3:28                 ` Stephen Leake
2003-12-28 16:14                   ` Georg Bauhaus
2003-12-29 22:45                     ` Jon S. Anthony
2003-12-29 22:42                   ` Jon S. Anthony
2003-12-30 15:17                     ` lifetime n00b
2003-12-30 16:56                     ` Stephen Leake
2003-12-22 15:50         ` Mark H Johnson
2003-12-22 19:46           ` lifetime n00b
2003-12-22 22:58             ` Mark H Johnson
2003-12-23 17:48               ` Robert I. Eachus [this message]
2003-12-23 17:59                 ` Mark H Johnson
2003-12-23 21:53                   ` Robert I. Eachus
2003-12-19 21:28     ` Simon Wright
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox