473,748 Members | 4,067 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Comparing Linux C and C++ Compilers: Benchmarks and Analysis

Hello,

I've posted a comparison of recent GCC versions (3.3, 3.4, and the
coming 4.0) with Intel C++ 8.1, including several benchmarks and
"state-of-the-product" reviews. You can find the article at:

http://www.coyotegulch.com/reviews/linux_compilers/

The above article replaces an older article I published in late 2002. This
new comparison marks what I hope will be an ongoing series that tracks the
quality of Linux compilers.

...Scott

--
Scott Robert Ladd
site: http://www.coyotegulch.com
blog: http://chaoticcoyote.blogspot.com
Nov 14 '05 #1
8 1785
Scott Robert Ladd wrote:

I've posted a comparison of recent GCC versions (3.3, 3.4, and
the coming 4.0) with Intel C++ 8.1, including several benchmarks
and "state-of-the-product" reviews. You can find the article at:

http://www.coyotegulch.com/reviews/linux_compilers/

The above article replaces an older article I published in late
2002. This new comparison marks what I hope will be an ongoing
series that tracks the quality of Linux compilers.


FYI the above produces peculiar results, like an overprint, when
received here with Netscape 4.75 under W98. Has it been passed
through html verification?

It neglects to show the optimization levels etc. used in running
gcc. The complete command line would be useful. You are aware
than gcc can also be told to use various instruction sets, from
the 386 onwards?

--
"This is a wonderful answer. It's off-topic, it's incorrect,
and it doesn't answer the question." -- Richard Heathfield

"I support the Red Sox and any team that beats the Yankees"

Nov 14 '05 #2
On Sat, 18 Sep 2004 21:05:25 +0000, CBFalconer wrote:
FYI the above produces peculiar results, like an overprint, when
received here with Netscape 4.75 under W98. Has it been passed through
html verification?
The web page uses XHTML formatting in the tables; it works fine with
Firefox 0.9.3 and 1.0PR, IE 6, and Konqueror 3.3, and Mozilla 1.7. I don't
have Netscape installed anywhere. The page passed a "tidy" test on in
Quanta Plus, my web editor.
It neglects to show the optimization levels etc. used in running gcc.
The complete command line would be useful. You are aware than gcc can
also be told to use various instruction sets, from the 386 onwards?


Yes, the article *does* show the switches used, in the section on "Test
Methods."

I compiled for the native instruction set of the target processor (using
-march=opteron and -march=pentium4, as appropriate). Again, this is stated
in the article. To quote from the article:

* for all GCC versions on Pentium 4:
-march=pentium4 -mfpmath=sse -fomit-frame-pointer -ffast-math -O3
* for GCC 3.4 and 4.0 on Opteron:
-march=opteron -ffast-math -O3
* for GCC 3.3 on Opteron:
-march=athlon-xp -ffast-math -O3
* for Intel C++ on Pentium 4:
icc -O3 -xN -tpp7 -ipo
--
Scott Robert Ladd
site: http://www.coyotegulch.com
blog: http://chaoticcoyote.blogspot.com
Nov 14 '05 #3
Scott Robert Ladd wrote:

On Sat, 18 Sep 2004 21:05:25 +0000, CBFalconer wrote:
FYI the above produces peculiar results, like an overprint, when
received here with Netscape 4.75 under W98.
Has it been passed through html verification?


The web page uses XHTML formatting in the tables; it works fine with
Firefox 0.9.3 and 1.0PR, IE 6, and Konqueror 3.3,
and Mozilla 1.7. I don't have Netscape installed anywhere.
The page passed a "tidy" test on in Quanta Plus, my web editor.


On that page,
http://www.coyotegulch.com/reviews/linux_compilers/
my Netscape 3.04g has overprint,
my IE V6.0 has no overprint.

--
pete
Nov 14 '05 #4
On Sat, 18 Sep 2004 21:05:25 GMT, CBFalconer <cb********@yah oo.com>
wrote in comp.lang.c:
Scott Robert Ladd wrote:

I've posted a comparison of recent GCC versions (3.3, 3.4, and
the coming 4.0) with Intel C++ 8.1, including several benchmarks
and "state-of-the-product" reviews. You can find the article at:

http://www.coyotegulch.com/reviews/linux_compilers/

The above article replaces an older article I published in late
2002. This new comparison marks what I hope will be an ongoing
series that tracks the quality of Linux compilers.


FYI the above produces peculiar results, like an overprint, when
received here with Netscape 4.75 under W98. Has it been passed
through html verification?


If someone told me that a web page of mine did not render properly
under Netscape 4.75, I would ask them why they are using that creaky
antique. Mozilla 1.72, Mozilla Firefox and Netscape 7.2 are free. I
tested the page in two up-to-date browsers, Firefox and Opera.

So why are you using that creaky antique?

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://www.eskimo.com/~scs/C-faq/top.html
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.l earn.c-c++
http://www.contrib.andrew.cmu.edu/~a...FAQ-acllc.html
Nov 14 '05 #5
Jack Klein wrote:
CBFalconer <cb********@yah oo.com> wrote in comp.lang.c:

.... snip ...

FYI the above produces peculiar results, like an overprint, when
received here with Netscape 4.75 under W98. Has it been passed
through html verification?


If someone told me that a web page of mine did not render properly
under Netscape 4.75, I would ask them why they are using that creaky
antique. Mozilla 1.72, Mozilla Firefox and Netscape 7.2 are free.
I tested the page in two up-to-date browsers, Firefox and Opera.

So why are you using that creaky antique?


For similar reasons to why I am running it on a 486/80. My
primary use is as a newsreader, and every time I consider
upgrading I hear about one more reason that Mozilla/Firefox/NS7.2
would create a problem for me. Besides, it is quite young, just
barely old enough to go to kindergarten. My cars are all older
too, I have a '63 Honda motorcycle in the garage, and I won't even
mention my bicycle.

--
"This is a wonderful answer. It's off-topic, it's incorrect,
and it doesn't answer the question." -- Richard Heathfield

"I support the Red Sox and any team that beats the Yankees"
Nov 14 '05 #6
CBFalconer wrote:

Jack Klein wrote:
CBFalconer <cb********@yah oo.com> wrote in comp.lang.c:

... snip ...

FYI the above produces peculiar results, like an overprint, when
received here with Netscape 4.75 under W98. Has it been passed
through html verification?


If someone told me that a web page of mine did not render properly
under Netscape 4.75, I would ask them why they are using that creaky
antique. Mozilla 1.72, Mozilla Firefox and Netscape 7.2 are free.
I tested the page in two up-to-date browsers, Firefox and Opera.

So why are you using that creaky antique?


For similar reasons to why I am running it on a 486/80. My
primary use is as a newsreader, and every time I consider
upgrading I hear about one more reason that Mozilla/Firefox/NS7.2


If you want to get the newest viruses and worms,
then you need the newest software.

--
pete
Nov 14 '05 #7

"Scott Robert Ladd" <co****@coyoteg ulch.com> wrote in message
news:pa******** *************** *****@coyotegul ch.com...
Hello,

I've posted a comparison of recent GCC versions (3.3, 3.4, and the
coming 4.0) with Intel C++ 8.1, including several benchmarks and
"state-of-the-product" reviews. You can find the article at:

http://www.coyotegulch.com/reviews/linux_compilers/

The above article replaces an older article I published in late 2002. This
new comparison marks what I hope will be an ongoing series that tracks the
quality of Linux compilers.

..Scott


I just hope you forgot to post this on your bathroom tiles.


--
ISA

Nov 14 '05 #8
Scott Robert Ladd <co****@coyoteg ulch.com> wrote in message news:<pa******* *************** ******@coyotegu lch.com>...
Hello,

I've posted a comparison of recent GCC versions (3.3, 3.4, and the
coming 4.0) with Intel C++ 8.1, including several benchmarks and
"state-of-the-product" reviews. You can find the article at:

http://www.coyotegulch.com/reviews/linux_compilers/

The above article replaces an older article I published in late 2002. This
new comparison marks what I hope will be an ongoing series that tracks the
quality of Linux compilers.

..Scott


Scott,

Terrific work ! I've been wishing to find exactly this.

I'm looking for discussion groups, mailing lists, etc where folks discuss
experiences in achieving optimizations. Thanks for your suggestions, on-line
or off-

Regards,
-rajeev-
Nov 14 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
1965
by: Dimension7 | last post by:
All, I am comparing to functions to see which is "better". In better, I mean more efficient, optimize, faster, etc. I have read other posts from other boards, but I'm not really sure of the benefits or if there is a speed increase with one vs. the other. FIRST VERSION function is_active($module) { global $prefix, $dbi;
0
1439
by: aaronwmail-usenet | last post by:
I've been wondering about benchmarks recently. What is a fair benchmark? How should benchmarks be vetted or judged? I decided to see what you folks thought, so for discussion I compared two priority queue implementations I published for Python in 1995 against the "heap" priority queue implementation added to the python distribution
0
1275
by: Michael Conlen | last post by:
There's been much news lately about various compilers for the Intel platforms after various benchmarks have come out which all disagree. One that I noticed is that the new Intel processors have a math processor that allows vector calculations, which I understand as being able to pass an array and an operation to the processor to perform an iterative calcuation as opposed to running the steps over and over again. Does anyone know if these...
6
391
by: Scott Robert Ladd | last post by:
Hello, I've posted a comparison of recent GCC versions (3.3, 3.4, and the coming 4.0) with Intel C++ 8.1, including several benchmarks and "state-of-the-product" reviews. You can find the article at: http://www.coyotegulch.com/reviews/linux_compilers/ The above article replaces an older piece I published in late 2002. This new comparison marks what I hope will be an ongoing series that tracks the
41
3958
by: Odd-R. | last post by:
I have to lists, A and B, that may, or may not be equal. If they are not identical, I want the output to be three new lists, X,Y and Z where X has all the elements that are in A, but not in B, and Y contains all the elements that are B but not in A. Z will then have the elements that are in both A and B. One way of doing this is of course to iterate throug the lists and compare each of the element, but is there a more efficient way? ...
27
3876
by: Mike | last post by:
Open source programs in general suck pretty bad also. Here are some loose facts regarding why projects like Linux, PHP, MYSQL, and other open source programs suck: - Linux is simply a clone of an operating system over 20 years old similar to DOS (Unix). That's ALL Linux is. The kernal was taken, decompiled, and stolen by Linus himself. That's a fact. Xerox should have sued, but at the during the early 1991, no one was really using Unix...
17
4141
by: Ozo | last post by:
What would be the C++ compiler producing the fastest code for Windows XP Pro (32-bit)? I have to choose between these two: - Visual C++ 2005 compiler - Intel C++ Compiler 9.0 for Windows My previous experience with older versions of these two compilers told me that Intel code was running faster than MS code. But now that I am about to upgrade, I would lile to pick the one producing the fastest code (things may have changed!).
1
1657
by: Murali | last post by:
Greetings from Pivot Systems, Inc.!!! Pivot Systems, Inc. established in 1997 is a global software services company, California corporation with several customers in the Silicon Valley, dedicated in providing expert software development services and solutions for major corporations. We offer many different process models including onsite consulting, local outsourcing and offshore development models to suit our specific customer needs and...
22
2048
by: Jon Harrop | last post by:
Flying Frog just launched the OCaml Journal: http://www.ffconsultancy.com/products/ocaml_journal/free/introduction.html?clcpp The free first article covers the basics of the OCaml programming language, which is ideally suited to the writing of C++ compilers. ;-) -- Dr Jon D Harrop, Flying Frog Consultancy The OCaml Journal
318
11059
by: King Raz | last post by:
The shootout site has benchmarks comparing different languages. It includes C# Mono vs Java but not C# .NET vs Java. So I went through all the benchmark on the site ... http://kingrazi.blogspot.com/2008/05/shootout-c-net-vs-java-benchmarks.html Just to keep the post on topic for my friends at comp.lang.c++, how do I play default windows sounds with C++?
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9544
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9324
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9247
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8243
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6074
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4606
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.