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,7767a311e01e1cd X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!news.tele.dk!news.tele.dk!small.news.tele.dk!news.astraweb.com!newsrouter-eu.astraweb.com!proxad.net!cleanfeed3-b.proxad.net!nnrp16-1.free.fr!not-for-mail Sender: sam@willow.rfc1149.net From: Samuel Tardieu Newsgroups: comp.lang.ada Subject: Re: GNAT compiler switches and optimization References: <1161341264.471057.252750@h48g2000cwc.googlegroups.com> <871wp3p4s6.fsf@willow.rfc1149.net> Date: 20 Oct 2006 14:18:14 +0200 Message-ID: <87wt6vnptl.fsf@willow.rfc1149.net> User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Leafnode-NNTP-Posting-Host: 2001:6f8:37a:2::2 Organization: Guest of ProXad - France NNTP-Posting-Date: 20 Oct 2006 14:20:01 MEST NNTP-Posting-Host: 88.191.14.223 X-Trace: 1161346801 news-4.free.fr 367 88.191.14.223:51140 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:7074 Date: 2006-10-20T14:20:01+02:00 List-Id: >>>>> "Sam" == Samuel Tardieu writes: Sam> Still, this is a huge penaly for Ada. Unfortunately, I don't have Sam> the time to investigate further right now. However, I would be Sam> interested in other people findings. Oh, also this one lowers the Ada execution time by around 10%: do not use an unconstrained type and do not use pointers. N : constant Positive := Positive'Value (Argument (1)); G : Ada.Numerics.Float_Random.Generator; type Real_Matrix is array(1 .. N, 1 .. N) of Float; pragma Convention (Fortran, Real_Matrix); A,B,C : Real_Matrix; And as Duncan says, you should try with a newer backend for Ada. Sam -- Samuel Tardieu -- sam@rfc1149.net -- http://www.rfc1149.net/