comp.lang.ada
 help / color / mirror / Atom feed
From: daveb@geac.UUCP (David Collier-Brown)
Subject: Re: Dynamic Address Clauses??
Date: 6 Jun 88 12:33:29 GMT	[thread overview]
Message-ID: <2817@geac.UUCP> (raw)
In-Reply-To: 5140@nsc.nsc.com


| In article <8806011944.AA06549@ti.com> LINNIG@eg.csc.ti.COM (Mike Linnig) writes:
| ...
| X: INTEGER;
| for X use at DYNAMIC;  -- just what does this mean??

In article <5140@nsc.nsc.com> rfg@nsc.UUCP (Ron Guilmette) writes:
| I have at least a fuzzy (but not warm) feeling as to the meaning of the code
| shown above, however a very similar construction has disturbed me deeply,
| to wit:
| 
| 	procedure P;
| 	for P use at DYNAMIC;
| 
| For a true embedded system, I can understand that one may want to fix certain
| routines at certain places via:
| 
| 	procedure P;
| 	for P use at STATIC;
| 
| However I cannot envision any case in which dynamic relocation of routines
| WHILE THE PROGRAM IS RUNNING would be of any benefit.  I can however
| predict that such a capability might be an implementor's nightmare.

  Well, I can suggest two cases where relocation of routines which
is transparent to the program may be of use:
	1) shared libraries
	2) replacement chipsets
  Both are really variants of the same thing, a piece of code which
may be replaced at run-time, either because its at a different
address than it was at link-time, or because it had to be replaced
due to an error.

  I'm personally attracted to the replacement-of-chips argument,
since one might want to replace one of a large number of ROM chips
in the field.  And not replace the whole set or board.

  In a non-embedded system, dynamic replacement is a long-term
maintenance win, as the Multicians found many moons ago.

--dave (Ichbiah was a Multician) c-b

ps: This is notably better than the procedure-pointer quasi-kludge
    of PL/1, B and C.
-- 
 David Collier-Brown.  {mnetor yunexus utgpu}!geac!daveb
 Geac Computers Ltd.,  | "His Majesty made you a major 
 350 Steelcase Road,   |  because he believed you would 
 Markham, Ontario.     |  know when not to obey his orders"

  parent reply	other threads:[~1988-06-06 12:33 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1988-06-01 15:12 Dynamic Address Clauses?? Mike Linnig
1988-06-02 12:39 ` Robert Firth
1988-06-10 14:38   ` stt
1988-06-15 21:19     ` Ron Guilmette
1988-06-03  6:02 ` Ron Guilmette
1988-06-03 14:52   ` markb
1988-06-06 12:33   ` David Collier-Brown [this message]
1988-06-08 18:52     ` Ron Guilmette
1988-06-10 19:22       ` Steve Hyland
1988-06-15 12:26       ` David Collier-Brown
1988-06-15 14:10 ` Burch Seymour
  -- strict thread matches above, loose matches on Subject: below --
1988-06-10 15:42 Jim Moody, DCA C342
1988-06-16 13:53 David E. Emery
1988-06-17  4:13 ` Richard A. O'Keefe
replies disabled

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