public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "william dot crocker at analog dot com" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug optimization/13712] Executable runs 25% slower than when compiled with INTEL compiler
Date: Thu, 29 Jan 2004 16:27:00 -0000	[thread overview]
Message-ID: <20040129162757.30646.qmail@sources.redhat.com> (raw)
In-Reply-To: <20040116211131.13712.william.crocker@analog.com>


------- Additional Comments From william dot crocker at analog dot com  2004-01-29 16:27 -------
Subject: Re:  Executable runs 25% slower than when compiled with INTEL compiler

> 
> ------- Additional Comments From falk at debian dot org  2004-01-29 16:01 -------
> Thanks for the test case. I see it's using FP math heavily. Could you also
> try the options -ffast-math and -mfpmath=sse? AFAIK the Intel compiler does
> the equivalent of these switches by default so they are needed for a fair
> comparison.
>

Your email suggest that I sould put something (?) after the sse, but the 
online GCC doc does not show this.

I get this when compiling.

>/home/whc/lintel/gcc/usr_local/bin/g++ -O3 -c -Wno-deprecated -ffast-math -mfpmath=sse y.cc
cc1plus: warning: SSE instruction set disabled, using 387 arithmetics

I also tried -msse and -msse2, but got no better than 30 Seconds.

ANYWAY it runs and I get the following which now shows INTEL with only
a 22% advantage versus the previous 37%.

Bill

###### USING GCC ######

`/home/whc/lintel/gcc/usr_local/bin/g++ -v`
Reading specs from /home/whc/lintel/gcc/usr_local/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/specs
Configured with: ./configure --prefix=/home/whc/lintel/gcc/usr_local --exec-prefix=/home/whc/lintel/gcc/usr_local
Thread model: posix
gcc version 3.3.2
/home/whc/lintel/gcc/usr_local/bin/g++ -O3 -c -Wno-deprecated -ffast-math -mfpmath=sse y.cc
cc1plus: warning: SSE instruction set disabled, using 387 arithmetics
ls -ls y.o
  46 -rw-r--r--    1 whc      cad         46676 Jan 29 11:05 y.o
/home/whc/lintel/gcc/usr_local/bin/g++ -O3 -o y y.o
/bin/csh -c "(setenv LD_LIBRARY_PATH /home/whc/lintel/gcc/usr_local/lib; time y)"
X422 = 469.196
30.669u 0.007s 0:31.04 98.7%	0+0k 0+0io 235pf+0w

###### USING ICC ######

/dcad/apps/intel/compiler70/ia32/bin/icc -V -c -O y.cc
Intel(R) C++ Compiler for 32-bit applications, Version 7.1   Build 20030307Z
Copyright (C) 1985-2003 Intel Corporation.  All rights reserved.

Edison Design Group C/C++ Front End, version 3.0 (Mar  8 2003 18:39:53)
Copyright 1988-2002 Edison Design Group, Inc.

ls -ls y.o
 144 -rw-r--r--    1 whc      cad        135824 Jan 29 11:06 y.o
/dcad/apps/intel/compiler70/ia32/bin/icc -o y y.o
/bin/csh -c "(setenv LD_LIBRARY_PATH /dcad/apps/intel/compiler70/ia32/lib; time y)"
X422 = 469.196
23.871u 0.011s 0:24.13 98.9%	0+0k 0+0io 178pf+0w









[whc@juno testcase]$ 


> 
> -- 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>   GCC build triplet|???                         |
>    GCC host triplet|DELL, Pentium4, Linux RedHat|
>                    |7.3                         |
>  GCC target triplet|???                         |i686-pc-linux-gnu
> 
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13712
> 
> ------- You are receiving this mail because: -------
> You reported the bug, or are watching the reporter.
> 


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13712


  parent reply	other threads:[~2004-01-29 16:27 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-01-16 21:11 [Bug c++/13712] New: " william dot crocker at analog dot com
2004-01-16 22:54 ` [Bug c++/13712] " pinskia at gcc dot gnu dot org
2004-01-22 19:42 ` william dot crocker at analog dot com
2004-01-22 19:45 ` [Bug optimization/13712] " pinskia at gcc dot gnu dot org
2004-01-22 19:48 ` bangerth at dealii dot org
2004-01-29 13:10 ` william dot crocker at analog dot com
2004-01-29 13:16 ` falk dot hueffner at student dot uni-tuebingen dot de
2004-01-29 13:29 ` william dot crocker at analog dot com
2004-01-29 16:01 ` falk at debian dot org
2004-01-29 16:27 ` william dot crocker at analog dot com [this message]
2004-01-29 16:48 ` falk at debian dot org
2004-02-03 21:34 ` william dot crocker at analog dot com
2004-02-16 14:55 ` uros at kss-loka dot si
2005-01-23 18:39 ` [Bug rtl-optimization/13712] " steven at gcc dot gnu dot org
2005-01-24 11:16 ` uros at kss-loka dot si
2005-04-24 14:18 ` steven at gcc dot gnu dot org
2005-05-07 15:27 ` steven at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040129162757.30646.qmail@sources.redhat.com \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).