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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,cf34599caf2fa938 X-Google-Attributes: gid103376,public From: Robb.Nebbe@di.epfl.ch (Robb Nebbe) Subject: Re: GNAT function calling overhead Date: 1995/04/06 Message-ID: <1995Apr6.163740@di.epfl.ch>#1/1 X-Deja-AN: 100939397 distribution: world sender: nebbe@lglsun3.epfl.ch (Robb Nebbe) references: <3m0nv1$pv2@nef.ens.fr> <3m0psq$fl2@stout.entertain.com> content-type: text/plain; charset=iso-8859-1 organization: Ecole Polytechnique Federale de Lausanne mime-version: 1.0 newsgroups: comp.lang.ada Date: 1995-04-06T00:00:00+00:00 List-Id: In article <3m0nv1$pv2@nef.ens.fr>, Duncan Sands wrote: >PS: The corresponding C code takes about 6 seconds. This surprises >me too. The main reason is most likely that the Ada code is not at all equivalent to the C code. If you declare type Matrix is array( 0 .. 14, 0 .. 14 ) of Float; and write the loops in a way that allow the compiler to optimize out the bounds checks (not sure if GNAT does this) then you should get the same result as with C; Robb Nebbe