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!news3.google.com!news.glorb.com!wn14feed!worldnet.att.net!164.128.36.58!news.ip-plus.net!newsfeed.ip-plus.net!news.post.ch!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: Re: GNAT compiler switches and optimization Date: Mon, 23 Oct 2006 08:28:15 +0200 Organization: Swisscom IP+ (post doesn't reflect views of Swisscom) Message-ID: <453c6100$1@news.post.ch> References: <1161341264.471057.252750@h48g2000cwc.googlegroups.com> <9Qb_g.111857$aJ.65708@attbi_s21> <434o04-7g7.ln1@newserver.thecreems.com> <4539ce34$1_2@news.bluewin.ch> NNTP-Posting-Host: 194.41.146.1 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: atlas.ip-plus.net 1161584900 16184 194.41.146.1 (23 Oct 2006 06:28:20 GMT) X-Complaints-To: abuse@ip-plus.net NNTP-Posting-Date: Mon, 23 Oct 2006 06:28:20 +0000 (UTC) User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) In-Reply-To: <4539ce34$1_2@news.bluewin.ch> X-Original-NNTP-Posting-Host: w01iwt.pnet.ch X-Original-Trace: 23 Oct 2006 08:28:16 +0200, w01iwt.pnet.ch Xref: g2news2.google.com comp.lang.ada:7154 Date: 2006-10-23T08:28:15+02:00 List-Id: Gautier schrieb: > Jeffrey Creem: > >> Note, I am the first one to jump to the defense of "Ada" in general >> but in this case, GNAT just plain sucks compared to GNU FORTRAN as it >> does a poor job on (at least) the inner loop (verified by looking at >> the output assembly) > > There is something strange... Martin Krischik was able to trim the > overall time for the Ada code down to 24% of the first version (GNAT/GCC > 4.1.1). > This should make the Ada program as fast as the FORTRAN one, shouldn't it ? > Maybe it's because the test is done on a 64 bit machine ? A 64 bit system doesn't need -march -mcpu and -msse2 as desperately. Try >gcc -dumpmachine i686-pc-cygwin For this system i686 is default. Martin