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!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!local01.nntp.dca.giganews.com!nntp.comcast.com!news.comcast.com.POSTED!not-for-mail NNTP-Posting-Date: Sun, 22 Oct 2006 10:45:14 -0500 Date: Sun, 22 Oct 2006 11:41:20 -0400 From: Jeffrey Creem User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: GNAT compiler switches and optimization 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> <453A532F.2070709@obry.net> <9kfq04-sgm.ln1@newserver.thecreems.com> <1161525012.997046.264780@k70g2000cwa.googlegroups.com> In-Reply-To: <1161525012.997046.264780@k70g2000cwa.googlegroups.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Message-ID: NNTP-Posting-Host: 24.147.74.171 X-Trace: sv3-5DPF1MxVVo7RJhrO2LaWL0mDyzgUeuM19R5MHRGDJGBu6nqBgD+TZgsvfJBU+Izi9PF1SgLgQxpQYsZ!gfhWdBp5hY7S8sSR/BGWv+kJq4QQ/lN/nAYhkxlbDJrlMGypALlo0MmxyZVQE/pAl5UfmxA7Mpqt!jx0= X-Complaints-To: abuse@comcast.net X-DMCA-Complaints-To: dmca@comcast.net X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.32 Xref: g2news2.google.com comp.lang.ada:7133 Date: 2006-10-22T11:41:20-04:00 List-Id: Alinabi wrote: > I ran your test programs compiled with gcc 4.0.3 and the following > optimizations: > COMMON_FLAGS=-g -march=opteron -mtune=opteron -mfpmath=sse > -fomit-frame-pointer -O2 -fdump-tree-optimized > and I cannot reproduce the large differences in performance everyone > else talks about. Here are the times I get: > > N Ada Fortran > ==================== > 64 0.002029 0.000000 > 128 0.016321 0.016000 > 256 0.214143 0.204013 > 512 3.125888 3.124195 > 800 6.374982 5.864366 > 1024 34.10479 35.22620 > 2048 277.3071 283.2417 > That is interesting. The question then becomes has FORTRAN improved on the way to 4.2.0 or has Ada regressed. Try doing a make dis_all which should produce annotated assembly output. The Ada version can be a little daunting in the way we have setup the files since the generic instantiations at the top full the .S files (woops, looked like I named them .dis) with the generic instatance. Even if you are not an assembly guru, if you start from the bottom of the files you can usually pretty quickly find that inner loop and compare the number of statements.