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!o36g2000vbl.googlegroups.com!not-for-mail From: Gautier write-only Newsgroups: comp.lang.ada Subject: Re: Performance of access type : a tiny mistake in the WikiBook ? Date: Thu, 8 Oct 2009 12:41:44 -0700 (PDT) Organization: http://groups.google.com Message-ID: <7b46a937-2b10-4ef4-b113-3e129747ca5e@o36g2000vbl.googlegroups.com> 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: 85.3.197.239 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1255030905 20936 127.0.0.1 (8 Oct 2009 19:41:45 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 8 Oct 2009 19:41:45 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o36g2000vbl.googlegroups.com; posting-host=85.3.197.239; posting-account=gRqrnQkAAAAC_02ynnhqGk1VRQlve6ZG User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US) AppleWebKit/532.0 (KHTML, like Gecko) Chrome/3.0.195.25 Safari/532.0,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8627 Date: 2009-10-08T12:41:44-07:00 List-Id: On 8 oct, 18:04, Yannick Duch=EAne Hibou57 : > Do some one have examples from other Ada compilers ? (GNAT is not the > only one). Sure, for instance Aonix ObjectAda 7.2.2 SE (release mode, optim. level 2) compiles this (P_in defined as above)... P_in(i,s); P_in(5678,s); P_in(6789,"direct!"); into... 22| 000024 00000000 22| 000028 8B4D MOV ECX, [EBP-8] 22| 00002A F8 22| 00002B 894D MOV [EBP-12], ECX ; i 22| 00002D F4 ; Source Line # 23 23| 00002E 68 PUSH __lcl.00000002 23| 00002F 00000000 23| 000033 8D55 LEA EDX, [EBP-4] ; s 23| 000035 FC 23| 000036 52 PUSH EDX 23| 000037 51 PUSH ECX 23| 000038 E8 CALL test_in_out.p_in 23| 000039 00000000 ; Source Line # 24 24| 00003D 68 PUSH __lcl.00000002 24| 00003E 00000000 24| 000042 8D75 LEA ESI, [EBP-4] ; s 24| 000044 FC 24| 000045 56 PUSH ESI 24| 000046 68 PUSH 5678 24| 000047 2E160000 24| 00004B E8 CALL test_in_out.p_in 24| 00004C 00000000 ; Source Line # 25 25| 000050 68 PUSH __lcl.00000004 25| 000051 00000000 25| 000055 68 PUSH __lcl.00000003 25| 000056 00000000 25| 00005A 68 PUSH 6789 25| 00005B 851A0000 25| 00005F E8 CALL test_in_out.p_in 25| 000060 00000000 _________________________________________________________ Gautier's Ada programming -- http://sf.net/users/gdemont/ NB: For a direct answer, e-mail address on the Web site!