comp.lang.ada
 help / color / mirror / Atom feed
From: Marin David Condic <condicma@bogon.pwfl.com>
Subject: Re: Package with initialization only
Date: 1999/07/22
Date: 1999-07-22T00:00:00+00:00	[thread overview]
Message-ID: <379728EA.5593E00E@pwfl.com> (raw)
In-Reply-To: 7n65nl$1ru2@svlss.lmms.lmco.com

David Kristola wrote:
> 
> Maybe it is my real-time embedded systems background,
> but i much prefer explicit initialization over
> elaboration.  The example that immediately comes to
> mind is a case where the elaboration code wrote over
> a memory mapped bus and sometimes caused contention
> interrupts.  There was a handler to deal with the
> situation, but it was not installed yet.
> Installation of interrupt handlers was the first
> thing the main program did after elaboration.
> 
In the embedded world, elaboration can sometimes cause serious troubles.
For example, in an application where the program begins execution in
EEPROM and has to copy itself to RAM before it can start writing to
memory, elaboration can be a problem. I've even had trouble with
compilers that wanted to dynamically initialize static constants at
elaboration (I guess to simplify the case where a constant might have a
dynamically determined value) which is really a bad idea if you want to
locate the constants in EEPROM. 

Which is, of course, not to say that elaboration in embedded computers
is *always* a bad thing. Its only once in a while that it gets
difficult. ;-)

MDC
-- 
Marin David Condic
Real Time & Embedded Systems, Propulsion Systems Analysis
United Technologies, Pratt & Whitney, Large Military Engines
M/S 731-95, P.O.B. 109600, West Palm Beach, FL, 33410-9600
***To reply, remove "bogon" from the domain name.***

Visit my web page at: http://www.mcondic.com/




  reply	other threads:[~1999-07-22  0:00 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-07-21  0:00 Package with initialization only Gautier
1999-07-21  0:00 ` Gautier de Montmollin
1999-07-21  0:00 ` Martin C. Carlisle
1999-07-21  0:00 ` Ted Dennison
1999-07-21  0:00   ` Samuel T. Harris
1999-07-21  0:00     ` David C. Hoos, Sr.
1999-07-22  0:00     ` David Kristola
1999-07-22  0:00       ` Marin David Condic [this message]
1999-07-22  0:00         ` laoxhai
1999-07-22  0:00       ` Samuel T. Harris
1999-07-22  0:00       ` Ted Dennison
1999-07-21  0:00 ` Robert A Duff
1999-07-22  0:00 ` Robert I. Eachus
replies disabled

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