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: 103376,a6449b2443dcdda1 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Path: g2news1.google.com!news4.google.com!feeder.news-service.com!feeder4.cambrium.nl!feed.tweaknews.nl!not-for-mail From: Ludovic Brenta Newsgroups: comp.lang.ada Subject: Re: Access keyword References: <48177d3e$1_1@news.bluewin.ch> <4818818A.8050906@gmail.com> Date: Wed, 30 Apr 2008 22:44:43 +0200 Message-ID: <87k5ifoyx0.fsf@ludovic-brenta.org> User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:a1d0gZK8xJc6cLpM8f8SxfAXH0E= MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Organization: Tele2 X-Trace: DXC=[CCjYl8aCL@Ne6AV=4DdV@@dNK`A2PE;0GR^@n_7c4bgO Xref: g2news1.google.com comp.lang.ada:21150 Date: 2008-04-30T22:44:43+02:00 List-Id: Sébastien writes: > Correct, I use -gnatVn but it looks like it's not the same (I don't > inlined anything). With -gnatp, Results are even more suprising: > > Norme is as fast as C and 30% faster than NormeAccess. I don't find this surprising at all. With -gnatp, the compiler emits essentially the same object code as for the "equivalent" C program. Using access values involves dereferencing a pointer multiple times, so is bound to be slower. -- Ludovic Brenta.