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!news1.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newscon02.news.prodigy.net!prodigy.net!newsfeed-00.mathworks.com!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: GNAT compiler switches and optimization Date: Fri, 20 Oct 2006 11:38:12 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <1161341264.471057.252750@h48g2000cwc.googlegroups.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls6.std.com 1161358692 25602 192.74.137.71 (20 Oct 2006 15:38:12 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 20 Oct 2006 15:38:12 +0000 (UTC) User-Agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/21.3 (irix) Cancel-Lock: sha1:3sOOaMNO/sjhMViwkDIn9j3onPc= Xref: g2news2.google.com comp.lang.ada:7082 Date: 2006-10-20T11:38:12-04:00 List-Id: "tkrauss" writes: > I'm a bit stuck trying to figure out how to coax more performance > out of some Ada code. ... In some cases, -O3 is slower than -O2. You could try that experiment. Is the Fortran compiler generating array-bounds checks? If not, pragma Suppress(All_Checks) in the Ada version will make the test more fair. - Bob