From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=BAYES_00,INVALID_MSGID, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,2485cb1936a0a4ec X-Google-Attributes: gid103376,public From: Marin David Condic Subject: Re: Package with initialization only Date: 1999/07/22 Message-ID: <379728EA.5593E00E@pwfl.com>#1/1 X-Deja-AN: 504021043 Content-Transfer-Encoding: 7bit Sender: condicma@bogon.pwfl.com References: <37964947.5C95E5D1@hso.link.com> <7n65nl$1ru2@svlss.lmms.lmco.com> Content-Type: text/plain; charset=us-ascii Organization: Pratt & Whitney Mime-Version: 1.0 Reply-To: diespammer@pwfl.com Newsgroups: comp.lang.ada Date: 1999-07-22T00:00:00+00:00 List-Id: 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/