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: a07f3367d7,98dc917fce16b418 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!q14g2000vbi.googlegroups.com!not-for-mail From: =?ISO-8859-1?Q?Yannick_Duch=EAne_Hibou57?= Newsgroups: comp.lang.ada Subject: Re: Performance of access type : a tiny mistake in the WikiBook ? Date: Thu, 8 Oct 2009 09:04:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <91ad7397-27a8-4b9d-811e-6e62d485645c@v2g2000vbb.googlegroups.com> <31da5154-9739-4ead-8437-aaa5d70dc7e8@h30g2000vbr.googlegroups.com> <87659df3-42a8-456b-9788-f37c4c1cbdb1@o21g2000vbl.googlegroups.com> NNTP-Posting-Host: 77.198.58.110 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1255017851 16707 127.0.0.1 (8 Oct 2009 16:04:11 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 8 Oct 2009 16:04:11 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q14g2000vbi.googlegroups.com; posting-host=77.198.58.110; posting-account=vrfdLAoAAAAauX_3XwyXEwXCWN3A1l8D User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; fr),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8625 Date: 2009-10-08T09:04:10-07:00 List-Id: On 8 oct, 11:55, Gautier write-only wrote: > The call P_in(5678,s) is compiled by GNAT GPL 2008 with (-gnatp -O2) > as: > > =A0 =A0 =A0 =A0 movl =A0 =A0%edi, %edx > =A0 =A0 =A0 =A0 movl =A0 =A0%esi, %ecx > =A0 =A0 =A0 =A0 movl =A0 =A0$5678, %eax > =A0 =A0 =A0 =A0 call =A0 =A0_test_in_out__p_in.1893 I was always using the -S option to be passed to GCC, but this was not building to whole application, so this was not meaningful. I've just learned the -save-temps is to be used instead : this keep assembly files *and* build the whole application (providing the compiler is or is based on GCC) Otherwise generics does not show anything, this option solve to it. Do some one have examples from other Ada compilers ? (GNAT is not the only one).