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!news3.google.com!news.glorb.com!news.moat.net!news-out.newsfeeds.com!propagator3-LAX.newsfeeds.com!news-in.newsfeeds.com!news-in.superfeed.net!nsnmpen1-lo.nuria.telefonica-data.net!news.ya.com!yacom!not-for-mail From: "Manuel G. R." Newsgroups: comp.lang.ada Subject: Re: pragma Inline in generic Date: Wed, 20 Jul 2005 21:40:53 +0200 Organization: ya.com internet factory Message-ID: References: <1121879427.142113.314140@z14g2000cwz.googlegroups.com> NNTP-Posting-Host: 62-151-40-70.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 1121888514 22182 62.151.40.70 (20 Jul 2005 19:41:54 GMT) X-Complaints-To: newsmaster@ya.com NNTP-Posting-Date: Wed, 20 Jul 2005 19:41:54 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20050513 Debian/1.7.8-1 X-Accept-Language: es-es, es, en-us, en In-Reply-To: <1121879427.142113.314140@z14g2000cwz.googlegroups.com> Xref: g2news1.google.com comp.lang.ada:3709 Date: 2005-07-20T21:40:53+02:00 List-Id: Try the -gnatn switch. GNAT by default does not inline subprograms calls outside of the package where they are defined. -gnatn Activate inlining across unit boundaries for subprograms for which pragma `inline' is specified. nicolas.b wrote: > I use gnat 5.02a1 : function "Length" seems not be Inline in generate > code. Why? Thank you for your answer. > -- 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