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=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,7cc61f141d214cee X-Google-Attributes: gid103376,public From: Tucker Taft Subject: Re: what does preelaborated package mean? Date: 1999/10/26 Message-ID: <38162057.79E96DDC@averstar.com>#1/1 X-Deja-AN: 540937675 Content-Transfer-Encoding: 7bit Sender: news@inmet.camb.inmet.com (USENET news) X-Nntp-Posting-Host: houdini.burl.averstar.com References: <7v3m2n$2cpo@drn.newsguy.com> <3815da0d_2@news1.prserv.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: AverStar (formerly Intermetrics) Burlington, MA USA Mime-Version: 1.0 Newsgroups: comp.lang.ada Date: 1999-10-26T00:00:00+00:00 List-Id: Matthew Heaney wrote: > > In article <7v3m2n$2cpo@drn.newsguy.com> , mitch@nospam wrote: > > > what exactly does this mean? I know what elaboration means, which is > > done at run time. So, a package that is 'preelaborated', when does > > this happen? and if this is a good thing, why not do everything like > > that? > > Basically, it means that you can't do any initialization of local > objects. You can't do any *dynamic* initialization. You can do static initialization. As a rough equivalent, you can do the kind of static initialization legal in "C" code, where there is no run-time elaboration, though there is link-time initialization of constants and variables. The goal of "preelaboration" is to eliminate the need to execute a run-time elaboration routine for the specified package, and rely strictly on the kind of initialization that most linkers/loaders can perform. -- -Tucker Taft stt@averstar.com http://www.averstar.com/~stt/ Technical Director, Distributed IT Solutions (www.averstar.com/tools) AverStar (formerly Intermetrics, Inc.) Burlington, MA USA