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.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,400766bdbcd86f7c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!134.158.69.22.MISMATCH!in2p3.fr!irazu.switch.ch!switch.ch!newsmi-eu.news.garr.it!NewsITBone-GARR!newsserver.cilea.it!news.crs4.it!not-for-mail From: Jacob Sparre Andersen Newsgroups: comp.lang.ada Subject: Re: This can't be done in Ada...or? Date: 15 Feb 2005 10:09:55 +0100 Organization: CRS4, Center for Adv. Studies, Research and Development in Sardinia Message-ID: References: <1108139611.709714.36170@o13g2000cwo.googlegroups.com> <2IcPd.6268$mG6.1474@newsread1.news.pas.earthlink.net> <1108372232.436036.318690@g14g2000cwa.googlegroups.com> <1108456053.837461.20340@f14g2000cwb.googlegroups.com> NNTP-Posting-Host: jacob.crs4.it Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pietro.crs4.it 1108457349 15727 156.148.71.80 (15 Feb 2005 08:49:09 GMT) X-Complaints-To: news@nntpserver.crs4.it. NNTP-Posting-Date: 15 Feb 2005 08:49:09 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: g2news1.google.com comp.lang.ada:8324 Date: 2005-02-15T08:49:09+00:00 List-Id: Mark Lorenzen wrote: > "Per Lindquist" writes: > > One of our target environments is a time-critical real-time > > system. We are worried about the execution overhead implied by a > > package instantiation (or any 'new' statement) in every subprogram > > in the system. > > > > Will your solution cause overhead for each subprogram call? > > A compile-time instantiation of a package has nothing to do with > run-time efficiency. You can also define a new type in a subprogram, > which doesn't affect run-time efficiency either. Aren't the compilers (theoretically) allowed to delay the instantiation of the packgage until run-time? Jacob -- "Only Hogwarts students really need spellcheckers" -- An anonymous RISKS reader