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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,400766bdbcd86f7c X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news3.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!nsnmrro1-lo.nuria.telefonica-data.net!nsnmpen2-lo.nuria.telefonica-data.net!nsnmpen1-lo.nuria.telefonica-data.net!news.ya.com!yacom!not-for-mail From: "Manuel G. R." Newsgroups: comp.lang.ada Subject: Re: This can't be done in Ada...or? Date: Mon, 14 Feb 2005 23:10:46 +0100 Organization: ya.com internet factory 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: 62-151-40-157.yaonline.ya.com Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Trace: news.ya.com 1108505572 22946 62.151.40.157 (15 Feb 2005 22:12:52 GMT) X-Complaints-To: newsmaster@ya.com NNTP-Posting-Date: Tue, 15 Feb 2005 22:12:52 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 X-Accept-Language: es-es, es, en-us, en In-Reply-To: <1108456053.837461.20340@f14g2000cwb.googlegroups.com> Xref: g2news1.google.com comp.lang.ada:8342 Date: 2005-02-14T23:10:46+01:00 List-Id: Per Lindquist wrote: > Jeffrey Carter wrote: > >> procedure Q is >> package That is new PragmARC.Reflection; > > > Hm, I was so excited about your solution I didn't notice the potential > problem with overhead, but a collegue of mine did: > > 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? > GNAT does provide GNAT.Source_Info.Enclosing_Entity for the same thing and probably without overhead. Do other compilers provide something equivalent? If I wrap GNAT.Source_Info, can I expect that when porting to other compiler there will be another package providing the same functionality? -- Ada programming tutorial: http://en.wikibooks.org/wiki/Programming:Ada Tutorial de programaci�n en Ada: http://es.wikibooks.org/wiki/Programaci%C3%B3n_en_Ada