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: a07f3367d7,8147e9052e4bc0df X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,UTF8 Path: g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nntp.club.cc.cmu.edu!feeder.erje.net!eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Child vs nested package : efficiency matter Date: Tue, 01 Jun 2010 20:04:44 +0100 Organization: A noiseless patient Spider Message-ID: References: <37b699c4-da76-4b5f-9074-0aa465af4a19@v12g2000prb.googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Date: Tue, 1 Jun 2010 19:04:44 +0000 (UTC) Injection-Info: mx01.eternal-september.org; posting-host="KCXegvZb5vh43D+f3BR6Ew"; logging-data="30028"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19FKUC4j1hNP8QrMSYjp+lrr3HQUFTYdkU=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (darwin) Cancel-Lock: sha1:obktSQkZqIHfsebUXZNnNwOXz3U= sha1:XWXdvr5ccdJGcjJoEHurhJ9mzhM= Xref: g2news2.google.com comp.lang.ada:12178 Date: 2010-06-01T20:04:44+01:00 List-Id: "Yannick DuchĂȘne (Hibou57)" writes: > Do you think there are some reasons to believe pragma Inline is not > properly applied with inter-package subprograms invocations ? First, you may need to use -gnatn or -gnatN and at least -O2 (have to look up the manual for this). You could also try the GNAT special pragma Inline_Always. I've found (powerpc-wrs-vxworks) that inlining can in fact slow things down. Cache effects, I suppose.