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=-2.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM, MAILING_LIST_MULTI autolearn=unavailable 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!news.germany.com!news.belwue.de!newsfeed.ision.net!newsfeed2.easynews.net!ision!news-lond.gip.net!news-raspail.gip.net!news.gsl.net!gip.net!grolier!news.enst.fr!news.rfc1149.net!not-for-mail From: Duncan Sands Newsgroups: comp.lang.ada Subject: Re: GNAT compiler switches and optimization Date: Fri, 20 Oct 2006 13:42:23 +0200 Organization: ENST, France Message-ID: References: <1161341264.471057.252750@h48g2000cwc.googlegroups.com> NNTP-Posting-Host: marvin.enst.fr Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Trace: avanie.enst.fr 1161345911 82878 137.194.161.2 (20 Oct 2006 12:05:11 GMT) X-Complaints-To: usenet@enst.fr NNTP-Posting-Date: Fri, 20 Oct 2006 12:05:11 +0000 (UTC) Cc: tkrauss To: comp.lang.ada@ada-france.org Return-Path: X-Greylist: delayed 1319 seconds by postgrey-1.24 at green; Fri, 20 Oct 2006 14:04:56 CEST User-Agent: KMail/1.9.5 In-Reply-To: <1161341264.471057.252750@h48g2000cwc.googlegroups.com> Content-Disposition: inline X-Virus-Scanned: by amavisd-new-20030616-p10 at math.u-psud.fr X-Virus-Scanned: amavisd-new at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.9rc1 Precedence: list List-Id: "Gateway to the comp.lang.ada Usenet newsgroup" List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , X-Leafnode-NNTP-Posting-Host: 88.191.17.134 Xref: g2news2.google.com comp.lang.ada:7070 Date: 2006-10-20T13:42:23+02:00 On Friday 20 October 2006 12:47, tkrauss wrote: > I'm a bit stuck trying to figure out how to coax more performance > out of some Ada code. I suspect there is something simple (like > compiler switches) but I'm missing it. As an example I'm using > a simple matrix multiply and comparing it to similar code in > Fortran. Unfortunately the Ada code takes 3-4 times as long. GNAT GPL 2006 is based on gcc 3.4.6. For fortran you are using gcc 4.2.0. Try using comparable compiler versions, eg: an Ada aware gcc 4.2.0 (several linux distributions provide this) or a gcc 3.4.6 version of fortran (i.e. some version of g77). Ciao, Duncan.