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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!mx02.eternal-september.org!feeder.eternal-september.org!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!news-1.dfn.de!news.dfn.de!news.uni-weimar.de!medsec1.medien.uni-weimar.de!lucks From: Stefan.Lucks@uni-weimar.de Newsgroups: comp.lang.ada Subject: Re: Running a preprocessor from GPS? Date: Wed, 29 Jul 2015 19:30:32 +0200 Organization: Bauhaus-Universitaet Weimar Message-ID: References: <1ckwx9hern944$.1w0k6fbvlqo62$.dlg@40tude.net> <1ipfeas9434z5.o8661mp0cpkh.dlg@40tude.net> <75a31df9-801e-4e7f-8e29-403c0650c891@googlegroups.com> <53238a9a-1b46-457a-98d7-29d8db4ce165@googlegroups.com> NNTP-Posting-Host: medsec1.medien.uni-weimar.de Mime-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="8323329-370042247-1438191033=:9310" X-Trace: pinkpiglet.scc.uni-weimar.de 1438191574 17957 141.54.178.228 (29 Jul 2015 17:39:34 GMT) X-Complaints-To: news@pinkpiglet.scc.uni-weimar.de NNTP-Posting-Date: Wed, 29 Jul 2015 17:39:34 +0000 (UTC) X-X-Sender: lucks@debian In-Reply-To: <53238a9a-1b46-457a-98d7-29d8db4ce165@googlegroups.com> User-Agent: Alpine 2.20 (DEB 67 2015-01-07) Xref: news.eternal-september.org comp.lang.ada:27133 Date: 2015-07-29T19:30:32+02:00 List-Id: --8323329-370042247-1438191033=:9310 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 29 Jul 2015, EGarrulo wrote: > Thanks. However, my understanding is that the inlining is=20 > unpredictable. According to the RM 6.3.2 (emphasis mine): > > "**For each call**, an implementation is free to follow or to ignore the= =20 > recommendation determined by the Inline aspect. " Well, yes! There are plenty of stupid things an Ada compiler can do,=20 without formally violating the standard. Such as raising Storage_Error,=20 when adding two integers. But usually, the maintainers of Ada compilers try to avoid stupid=20 behavior. A compiler is not required to support inlining and dead code=20 elimination -- and I seem to recall that gnat needs to be "pushed" doing=20 that by turning on optimization (at least -O1). But when a compiler does=20 inlining and dead code elimination at all, I would be shocked if it would= =20 not actually inline and eliminate where this is obvioulsly applicable, as= =20 in the Debug.Trace example. -------- I love the taste of Cryptanalysis in the morning! -------= - www.uni-weimar.de/de/medien/professuren/mediensicherheit/people/stefan-luck= s ----Stefan.Lucks (at) uni-weimar.de, Bauhaus-Universit=E4t Weimar, Germany-= --- --8323329-370042247-1438191033=:9310--