🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.os.linux.suse
Article #424

Re: gcc 3.2 makes slower code

#424
From: Wit Jakuczun
Date: Mon, 25 Nov 2002 20:48
30 lines
2242 bytes
On Mon, 25 Nov 2002 19:01:55 GMT, 
Jeffrey Cunningham <jeffrey@cunningham.net> wrote:

> conclusions: (1) it isn't the I/O. The "slowdown factor" going to gcc 3.2
> is x1.6 with I/O and x1.5 without. 
Try this code:

   #include <fstream>
   int main() {
      std::ofstream out("out.txt");

      for(int i=0;i<1000000;++i)
         out << i << '\n'; //compare with endl
   };

If there is only 1.5-1.6 slow down beetwen 3.2 and 2.95 then it will
mean that I have problems with my compiler.
How did you compile your 3.2 version and what is your Linux
(distribution)?

> [..] And (2) it makes no difference to these
> calculations (intensive floating point vector operations) whether I use
> -O3 or -O2. 
It doesn't have to. I think you should rather use some math
optimizations (for example sse or mmx).


-- 
Wit Jakuczun                                                   
mailto:wj178839@wp.pl                                          
Technical Details
Message-ID: <slrnau5349.11v.wit@mefisto.hades>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.tpinternet.pl!news.tpi.pl!nnrpd
References: <pan.2002.11.24.02.51.19.422739@cunningham.net> <arqit4$4n6$1@condor.gjs.xs4all.nl> <pan.2002.11.25.05.30.25.633705@cunningham.net> <uu3e5l1f71fs38@corp.supernews.com> <pan.2002.11.25.19.02.02.459662@cunningham.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1041dd,6b8a900e383d587f
X-Google-Attributes: gid1041dd,public
X-Google-Thread: f65d0,cf9dda410d7d1076
X-Google-Attributes: gidf65d0,public
X-Google-ArrivalTime: 2002-11-25 12:48:20 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.tpinternet.pl!news.tpi.pl!nnrpd
From: Wit Jakuczun <wit@wp.pl>
Newsgroups: alt.os.linux.suse,gnu.gcc
Subject: Re: gcc 3.2 makes slower code
Followup-To: gnu.gcc
Date: Mon, 25 Nov 2002 21:48:10 +0100
Organization: tp.internet - http://www.tpi.pl/
Lines: 30
Message-ID: <slrnau5349.11v.wit@mefisto.hades>
References: <pan.2002.11.24.02.51.19.422739@cunningham.net> <arqit4$4n6$1@condor.gjs.xs4all.nl> <pan.2002.11.25.05.30.25.633705@cunningham.net> <uu3e5l1f71fs38@corp.supernews.com> <pan.2002.11.25.19.02.02.459662@cunningham.net>
Reply-To: wj178839@wp.pl
NNTP-Posting-Host: pb205.warszawa.cvx.ppp.tpnet.pl
X-Trace: news.tpi.pl 1038257292 9230 213.76.97.205 (25 Nov 2002 20:48:12 GMT)
X-Complaints-To: usenet@tpi.pl
NNTP-Posting-Date: Mon, 25 Nov 2002 20:48:12 +0000 (UTC)
X-Path-Notice: Path line has been filtered
X-Original-Path: 127.0.0.1!nobody
User-Agent: slrn/0.9.7.4 (Linux)