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,80e617905d3d4857 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!news2.google.com!proxad.net!infeed-1.proxad.net!news4-e.free.fr!not-for-mail Date: Wed, 20 Jul 2005 22:45:41 +0200 From: Damien User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050317) X-Accept-Language: fr, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: pragma Inline in generic References: <1121879427.142113.314140@z14g2000cwz.googlegroups.com> In-Reply-To: <1121879427.142113.314140@z14g2000cwz.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: <42deb7f5$0$7314$636a15ce@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 20 Jul 2005 22:45:41 MEST NNTP-Posting-Host: 82.235.135.166 X-Trace: 1121892341 news4-e.free.fr 7314 82.235.135.166:33488 X-Complaints-To: abuse@proxad.net Xref: g2news1.google.com comp.lang.ada:3710 Date: 2005-07-20T22:45:41+02:00 List-Id: nicolas.b a �crit : > > I use gnat 5.02a1 : function "Length" seems not be Inline in generate > code. Why? Thank you for your answer. > I have never used gnat 5.02a1 but it must certainly behave like other versions of gnat with regard to inlining. Inlining depends on compiler options. IIRC, one needs -O2 optimisation level (at least) to obtain inlining. The best is to read gnat user guide and search for inline. Damien