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,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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.buerger.net!open-news-network.org!news.cs.univ-paris8.fr!proxad.net!cleanfeed3-a.proxad.net!nnrp17-2.free.fr!not-for-mail Return-Path: X-Greylist: delayed 1529 seconds by postgrey-1.24 at green; Fri, 20 Oct 2006 13:30:58 CEST From: Duncan Sands To: comp.lang.ada@ada-france.org Subject: Re: GNAT compiler switches and optimization Date: Fri, 20 Oct 2006 13:04:55 +0200 User-Agent: KMail/1.9.5 References: <1161341264.471057.252750@h48g2000cwc.googlegroups.com> In-Reply-To: <1161341264.471057.252750@h48g2000cwc.googlegroups.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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-Mailman-Approved-At: Fri, 20 Oct 2006 13:33:49 +0200 Cc: tkrauss 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: , Newsgroups: comp.lang.ada Message-ID: X-Leafnode-NNTP-Posting-Host: 88.191.17.134 Organization: Guest of ProXad - France NNTP-Posting-Date: 20 Oct 2006 13:35:02 MEST NNTP-Posting-Host: 88.191.14.223 X-Trace: 1161344102 news-1.free.fr 22108 88.191.14.223:42517 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:7068 Date: 2006-10-20T13:35:02+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.