<?xml version="1.0" encoding="utf-8" ?>
<rss version="2.0" xmlns:osnews="http://osnews.com/rss2#">
	<channel>
		<title>OSNews: </title>
		<link>http://www.osnews.com/story/5830/GNU_GCC_versus_Sun_s_Compiler_in_the_SPARC_Platform</link>
		<description>Exploring the Future of Computing</description>
		<language>en-us</language>
		<copyright>Copyright 2001-2009, David Adams</copyright>
		<webMaster>adam+nospam@osnews.com</webMaster>
		<lastBuildDate>Mon, 06 Jul 2009 01:37:18 GMT</lastBuildDate>
		<image>
			<url>http://www.osnews.com/images/osnews.gif</url>
			<title>OSNews.com</title>
			<link>http://www.osnews.com</link>
		</image>
		<item>
			<title>Missed a statistic</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Don't know either way, but it would be interesting to know what the COMPILE times were, to see how the Sun and GCC compilers faired for just daily coding.<br />
<br />
Also, all of these programs are (I believe) pure C, some C++ programs would be very interesting as well.<br />
<br />
(I know, he goes through all of this effort, and yet all we do is criticize anyway. Not my intention, seemed like a good effort.)</description>
			<pubDate>Wed, 28 Jan 2004 20:07:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>great article</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Thanks so much, I've really enjoyed your series so far on your old sparc box. Keep them coming!<br />
<br />
My only question, I have a feeling you're gonna address in future articles, did you breath new life in to the sparc? Or is it gonna sit next to your desk after all this is over?</description>
			<pubDate>Wed, 28 Jan 2004 20:12:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Future ?</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>What would be great now is have some comments from the gcc team. Why is gcc slower ? Is it just some very specific areas(e.g. floating points, long long arithmetic) ? What's planned in the future for getting gcc to produce faster code ?<br />
<br />
Another thing I miss in the comparison is standard compliance. How well does gcc and the Sun compiler conform to the relevant C and C++ standards ?</description>
			<pubDate>Wed, 28 Jan 2004 20:16:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Re: great article</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Its definitely a good article. A real joy to read. Keep up the good work.</description>
			<pubDate>Wed, 28 Jan 2004 20:18:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>What This Implies for Earlier 32v64 article</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>I think this suggest that the earlier 32bit is faster than 64bit conclusion is in fact entirely dependent on GCC.  Sun's compiler seems to consistantly generate the same or faster 64bit code than its 32bit version.</description>
			<pubDate>Wed, 28 Jan 2004 20:26:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Re: Anonymous</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description><i>What would be great now is have some comments from the gcc team. Why is gcc slower ? Is it just some very specific areas(e.g. floating points, long long arithmetic) ? What's planned in the future for getting gcc to produce faster code ?</i><br />
<br />
gcc for sparcv9 is relatively new.  Thanks to gcc's modular backend, the difference isn't severe in these examples, although from personal experience I've seen much more drastic differences in performance of binaries compiled with the Forte Compiler Collection tools versus gcc.  When I tried compiling one of our grid analysis tools here (which makes extensive use of 64-bit integers and floating point math) with both compilers, the version compiled with the Sun compiler ran about 40% faster than the version compiled with gcc 3.3.<br />
<br />
Sun has been fine tuning their compilers for sparcv8/v9 for over a decade, and it certainly shows.<br />
<br />
<i>Another thing I miss in the comparison is standard compliance. How well does gcc and the Sun compiler conform to the relevant C and C++ standards ?</i><br />
<br />
Per default gcc has some very odd behavior.  With the -ansi -pedantic flags gcc behaves a bit nicer.  Obviously Sun's compiler doesn't support a lot of the gcc-specific extensions which some have seen as fit to use (i.e. variable argument macroes, nested functions, etc)  I believe it's the responsibility of all programmers to ensure their code is portable across a number of compilers and not bound to a particular toolchain.<br />
<br />
Most of the problems you'll run into trying to compile code developed primarily with gcc/x86 without a lot of portability testing are going to be in things like endianness issues and addressing misaligned words, which is, in my opinion, a coding error.</description>
			<pubDate>Wed, 28 Jan 2004 20:29:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>may the speed be with you!</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>As someone pointed out the Ultra 5 has a really crappy IDE chipset. It works real good stabel as heck, but sadly only in polled IO. Not having DMA kinda puts a damper on any box. What Im doing right now is seting my box up to boot on a CompactFlash and run the disks on a PCI card (Promise Ultra TX2 133). I will keep you posten on the progress.</description>
			<pubDate>Wed, 28 Jan 2004 20:31:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>64-bit versus 32-bit</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Yeah, that was a big surprise, which seemed to mean that 64-bit binaries with Sun's compiler, despite applications not specifically writen for 64-bit, seem to be faster.<br />
<br />
Still, the fact that performance wasn't all that far off says a lot about the quality of GCC, and why it's in such wide use.   They've done a fantastic job.</description>
			<pubDate>Wed, 28 Jan 2004 20:56:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>More C++ would be nice</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>What about a benchmark that tests the more advanced C++ features such as the STL? That would be nice. <br />
<br />
But other than that it is a very good article. The performance of GCC is really impressive. I wonder if this is why KDE3.2 is so fast.</description>
			<pubDate>Wed, 28 Jan 2004 20:57:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Floating Point Benchmarks missing</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>All the programs examined here appear to be integer heavy. Sparc chips are not great integer performers, those who buy them are not looking for integer performance.<br />
<br />
Floating point performance is where Sparc really shines, and is a spot where GCC is traditionally bad. The Sparc compiler does amazing things to floating point heavy code. The code I run is fp heavy, and the sparc compiliers make a noticiable difference.<br />
<br />
The author of this article has really missed the boat. If you want to run standard GNU/Linux type stuff like what was benchmarked here, buy a cheap intel box and run linux. But if you need fp, get the Solaris stuff.</description>
			<pubDate>Wed, 28 Jan 2004 21:00:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Re: TonyB</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description><i>Yeah, that was a big surprise, which seemed to mean that 64-bit binaries with Sun's compiler, despite applications not specifically writen for 64-bit, seem to be faster.</i><br />
<br />
It's not that much of a surprise considering the majority of executables that Sun ships with Solaris are 32-bit...</description>
			<pubDate>Wed, 28 Jan 2004 21:00:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Tendra ?</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>These comparisons are great !<br />
Now, anyone up for benchmarking Tendra vs gcc on x86/linux/*bsd ?</description>
			<pubDate>Wed, 28 Jan 2004 21:01:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>CFlags</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>First off good article.<br />
<br />
But with the benchmarking CFlags for gcc, I think it would be intersting to use: &quot;-O2 -march=ultrasparc -fomit-frame-pointer&quot; instead of &quot;-O3 -mcpu=ultrasparc&quot;.<br />
March generates it for the cpu specified W/O backwards compalibility.  So it should in theory generate faster code <img src="/images/emo/smile.gif" alt=";)" /> <br />
Also I have found that -O3 slows some programs up,  And -fomit-frame pointer always seems to speed up programs but only slightly.<br />
<br />
Although I think the conclusion will be the same that the sun compiler generates better code...</description>
			<pubDate>Wed, 28 Jan 2004 21:15:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Re: Tendra</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Is Tendra even running on Linux? <br />
And if so, where is the rpm?</description>
			<pubDate>Wed, 28 Jan 2004 21:16:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>c++</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>I too would like to see some in depth c++ comparisons, if the author could provide them.<br />
Thanks</description>
			<pubDate>Wed, 28 Jan 2004 21:22:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Disk I/O</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Wouldn't the easiest way to keep I/O speed out of the equation for the gzip tests be to redirect the output to /dev/null ?  Ie: time gzip -dc /some/file.gz &gt; /dev/null.</description>
			<pubDate>Wed, 28 Jan 2004 21:28:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Disk I/O</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Good idea, I hadn't thought of that.  I'm traveling now, so I don't have access to the system, but I'll give it a try when I do.</description>
			<pubDate>Wed, 28 Jan 2004 21:42:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Dont have access? :-) n00b!</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Ever heard of ssh? &quot;Be online, all the time&quot; GPRS, my Nokia and Toshiba L5 roxx! :-)</description>
			<pubDate>Wed, 28 Jan 2004 22:31:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>The Problem with GCC on alternate platforms</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Is that Sun has the same advantage as SGI, they do produce their own hardware so Sun's compilers will perform higher than GCC because they are optimized for that platform.</description>
			<pubDate>Wed, 28 Jan 2004 22:52:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Where sun has alway shined is on IO (IMHO).</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Why no IO benchmarks? The reason for me to get Sun has always been the ability to run a superior OS (SunOS). Now there is Linux for the Intel CPUs, no reason to get Sun. Why get a Sun now? IO on Intel still chokes on heavy IO (I2O? Dunno... never cound find a board that supported it OK) Hows about someone give Tony a 450 loaded with RAM and disks so we can see some IO benchmarks?</description>
			<pubDate>Wed, 28 Jan 2004 22:59:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Re: The Problem with GCC on alternate platforms</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Yes. If you take that into account, the performance of GCC is even more impressive.</description>
			<pubDate>Wed, 28 Jan 2004 23:36:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>way to go gcc</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Much of the gcc effort is revolving around x86. Thus if indeed gcc comes so close to Workshop's performance it's very impressive. However, as Jason pointed already to make any kind of statement author should have performed full CPU2000 suite. Just gzip is not enough to evaluate anything.</description>
			<pubDate>Thu, 29 Jan 2004 00:11:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Please try -Os and -O2 options as well.</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>gcc 3.x's -O3 sometimes produces marginally faster code on x86 cpus (its not worth it; stick to -Os for general things and -O2 for hot spot code that gets executed a lot).<br />
<br />
I've found -O2/-O3 being faster not to be true on other architectures.  For instance on my alpha. gcc 3.x's -Os produces the fastest code (faster than -O2, -O3 or -O).</description>
			<pubDate>Thu, 29 Jan 2004 00:28:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Why use low-end hardware</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>I think the Sun compilers would perform a bit better than gcc on higher end Sun hardware. A U5 even in it's day wasn't a terribly impressive machine compared to the U60 workstation line. Today's workstations vs desktops are even more spread out if you compare CPU cache and memory bandwith. A SunBlade 2k verses a Blade 100 is a signifigant difference.</description>
			<pubDate>Thu, 29 Jan 2004 00:50:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE:Please try -Os and -O2 options as well.</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>-Os produces buggy code sometimes. It is not advisable to use it for most code. I know Gnumeric, Abiword and some GNOME games segfault and crash with -Os.</description>
			<pubDate>Thu, 29 Jan 2004 00:57:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Pricing</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>But Tony, Sun's compiler is so expensive! Yes, it is expensive, especially when compared to the free (as in beer and freedom) GCC. However, Sun does offer a free 60-day evaluation license for their compiler suite, which is what I used.<br />
<br />
For Sun's compiler, I used the 60-day trial for Sun ONE Studio 7, which can be found here. It includes C, C++, and Fortran compilers, as well as Java other development tools. The full version lists for $2,995.<br />
<br />
It is possible to obtain these compilers for a substantially lower price. See:<br />
<br />
<a href="http://wwws.sun.com/software/cover/2003-1027/index.html" rel="nofollow">http://wwws.sun.com/software/cover/2003-1027/index.html</a> <br />
<br />
If you run your own small business, you could get it for as low as $105/yr, which, compared to the other price is quite a deal.</description>
			<pubDate>Thu, 29 Jan 2004 02:12:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>profile directed optimization &amp;amp; I/O stuff?</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Mr. Bourke,<br />
<br />
What's the difference between the compilers when profile directed optimization comes into play?<br />
<br />
In regards to I/O bound issues, as an addition to /dev/null, you could try running inside of /tmp and/or switching your UFS filesystems to logging,noatime. <br />
<br />
Yours truly,<br />
Jeffrey Boulier</description>
			<pubDate>Thu, 29 Jan 2004 03:07:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Note on the graphs used</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>I would greatly appreciate it if the actual numbers from the tests were given.  By just looking at the graphs, it is difficult to tell just how pronounced the differences are.<br />
<br />
It is good to see someone at least trying to verify the &quot;Sun vs. GNU&quot; statements.<br />
<br />
Geoff</description>
			<pubDate>Thu, 29 Jan 2004 03:19:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Re: tuttle</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description><i>Yes. If you take that into account, the performance of GCC is even more impressive</i><br />
<br />
Not really.  The vast majority of code optimizations are not platform specific.  gcc sports a modular backend which makes it easy to port to other architectures.  When faced with complex mathematical code, I've found (see my previous post in this thread) gcc to be a poor performer on sparcv9 (doing calculations on based on large sets of 64-bit fixed point grid coordinates)</description>
			<pubDate>Thu, 29 Jan 2004 03:30:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>re:  GNU GCC versus Sun's Compiler in the SPARC Platform</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Reading your story about how gcc is almost as fast as Sun's compiler, I thought I'd try it for myself given that I have both of them handy. I use Sun's Forte compiler on my product on Solaris/SPARC.<br />
<br />
        Here are my compiler specs that I currently have on a 300MHZ Ultra 60.<br />
<br />
<br />
                gcc:    gcc version 3.3<br />
                cc: Forte Developer 7 C 5.4 2002/03/09<br />
<br />
        I'm doing 32 bit only, for now.<br />
<br />
        The application will be a memory manager, so one can safaly say that this is integer based through and through. Lots of loads and stores with many register ops in between. There isn't any reading/writing to/from disk, so no bottlenecks there. Just straight load/store/register operations.<br />
<br />
        Compiler flags used: I don't know if I'm using the right compiler flags for gcc, and in fact, maybe I could use better compiler flags on cc as well, but never the less, here's what I'm currently using. If anyone want to suggest better flags to try, pelase let me know and I can rerun the tests.<br />
<br />
        Compiler flags SPARC and INTEL platforms:<br />
<br />
                gcc flags:      -O3    <br />
                                 -fexpensive-optimizations<br />
                                -finline-functions <br />
                                -ffast-math<br />
                                -fomit-frame-pointer<br />
<br />
                cc flags:       -fast<br />
<br />
        The numbers are the time it takes to complete the test, so lower numbers are better:<br />
<br />
                gcc:    55s<br />
                cc:     44s<br />
<br />
        Did each run 5 times, took the average.<br />
<br />
        Sun is 25% faster by my math.<br />
<br />
        Sun's compiler is much faster. It takes longer to compiler the application, but that's not what is important. What's important is how fast the resulting binaries are.<br />
<br />
        On the INTEL side, I get the following results from using the following<br />
compilers.<br />
<br />
                gcc:    gcc version 3.3.2<br />
                cc:     cc: Sun WorkShop 6 update 2 C 5.3 <br />
                            2001/05/15<br />
<br />
<br />
        Execution times (lower times are better):<br />
<br />
                gcc:    95s<br />
                cc:     95s<br />
<br />
        On INTEL, in my application, they are equal.<br />
<br />
<br />
        Any questions, email me:        balson@attbi.com<br />
<br />
<br />
<br />
Jim</description>
			<pubDate>Thu, 29 Jan 2004 03:35:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>More individual benchmark runs?</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>This may well be a minor point, but I think it would be helpful if Tony ran his benchmarks more than 3 times a piece and averaged the results.  While he claims that his numbers were pretty much consistent, I think it would be instructive to run the benchmarks a large number of times to be sure that his data is mostly accurate. With a large dataset, you can easily pick-off the outlying points, and have a better idea of what your distribution is.  My experience is that you mostly get a lot of hits around one datapoint, however, finding bi-modal cases can be an indication of complex/interesting behavior that might warrant further investegation.  It's a minor point, but it would certainly lend additional credibility to his claims.</description>
			<pubDate>Thu, 29 Jan 2004 07:46:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>My conclusion is ..</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>that for us it ain't worth investing in proprietary compilers.<br />
<br />
I work for a small company producing an open, cross-platform Seismic interpretation platform (www.opendtect.org).<br />
<br />
We compile our suite with gcc on all platforms (including win32) and that is where the great benefit of gcc lies: it is the same on all platforms. If it compiles on Linux, it almost certainly also compiles on Solaris, SGI and even win32 if you leave differences in api's out of the equation. <br />
Whatever you do with templates and whatever clever C++ constructs you might come up with, if it compiles on one platform, it compiles everywhere.<br />
<br />
And yes, it might cost some performance, but I don't think a performance loss in the order of 5-10% average is a big deal, compared to the benifits of having a single, standard compliant compiler across all platforms.<br />
This is not only benifitial to the developer (after all, the customer 'pays' the performance penalty, not the developer), because if I spend less time porting and debugging, I can spend more time on developing new features or write better documentaion.<br />
<br />
By the way, beside the compiler there is also gdb, which is also the same across all platforms, even tough the SGI one does not support debugging of multi-threaded applications.<br />
<br />
So, I personally prefer the cross-platform benifits of gcc over performance gain of proprietary alternatives without one second of hesitation.</description>
			<pubDate>Thu, 29 Jan 2004 08:51:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>RE: GNU GCC versus Sun's Compiler</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>If you'd like to see a bit more performance difference,<br />
try a really FP intensive code like Dyna, use the latest compiler (currently version 8), enable full optimization<br />
at least &quot;f90 -fast -v9b&quot; or similar, and run on a modern machine (UIIICu, UIIIi or UIV processor).</description>
			<pubDate>Thu, 29 Jan 2004 08:54:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>option</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>For the the gcc compiler -march=v9 should work better.<br />
-funroll-all-loops too.<br />
-fomit-frame-pointer could give you 10% more performance.<br />
<br />
You should also try -Os and -O2</description>
			<pubDate>Thu, 29 Jan 2004 12:48:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Gcc 3.3.2, similar tests, wanted changes</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>So, okay.  This is a decidedly integer-heavy test.  Given that at least one other person has commended on the floating point focus of scc and the solaris platform, I'd love to see some good heavy floating point done.  Since we're talking about real-world performance, it might also be a good idea to get some fixed-point in there.<br />
<br />
I'm a little surprised that you're using GCC 3.3.2, when GCC 3.5 is out.  GCC 3.5 produces impacts on ARM7 code speed as much as 15%; I would be excited to learn how it performed on the Sparc, both in comparison to scc and to older GCCs.<br />
<br />
I'd also like to see how the compilers hold up to Dhrystone, under general-approach algorithms like the Mersenne Twister or Boost's Lagged Fibonacci RNG generators; to large-scale large-variance code like the Boost regression tests, the Loki tests and some or another STL test suite; to large patterned number maniuplation like GIMPS or a GMP rigor test; et cetera.<br />
<br />
This is a wonderfully neat page, but it could use some work in the way the tests are done.  I suggest a look at David Welch's compiler performance page for the GameBoy Advance, which though just one test is a test done in a rather more rigorous fashion.  <a href="http://www.dwelch.com/gba/dhry.htm" rel="nofollow">http://www.dwelch.com/gba/dhry.htm</a></description>
			<pubDate>Thu, 29 Jan 2004 18:29:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Great, but three times is not enough...</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Your articles are great, but I would suggest running the test more than three times, say at least ten times, to be able to use common statistical tools to evaluate significance of your results.</description>
			<pubDate>Thu, 29 Jan 2004 19:25:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>No otimization for GCC</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>I'm not an expert (far from it) in compiler technology, but it seems to me that there would be some improvement in performance with the GCC compilers if they had both been built from source with the Sun cc compiler.  The problem I see with the setup used here is that a binary version of the GCC 3.2 compiler was installed so it was likely optimized for a different peice of hardware or not optimized at all and then the 2.95 version was built with this non-optimized compiler.</description>
			<pubDate>Thu, 29 Jan 2004 23:42:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>SIMD instruction support</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>I recall that the SPARC processor has an equivalent instruction set to MMX. I also recall that the Sun C compiler supports this and that GCC does not. For those of us involved in signal processing and image processing this would be a big win.<br />
<br />
Also this would seemingly be a very big win for the Sun C compiler.<br />
<br />
Any thoughts on this?<br />
<br />
Also, it would be really nice to see some benckmarks with more floating point intensice operations.<br />
<br />
- Andrew</description>
			<pubDate>Fri, 30 Jan 2004 02:25:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>higher-end features not covered</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>While the article is interesting, it neglects to mention that Sun's C compiler supports a lot of things that gcc does not, like code autovectorization (-xautopar) and OpenMP support. I've found that these can provide big wins on SMP machines (I've done some testing on a 6-processor V880 at my university).<br />
<br />
Take a look at the cc man page - <a href="http://developers.sun.com/tools/cc/documentation/s1s8cc_documentation/man1/CC.1.html" rel="nofollow">http://developers.sun.com/tools/cc/documentation/s1s8cc_documentati...</a>.  About half of it is dedicated to the various optimization flags.</description>
			<pubDate>Fri, 30 Jan 2004 06:10:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>

		<item>
			<title>Close to reality, but experimental design is flawed.</title>
			<link>http://osnews.com/thread?</link>
			<guid isPermaLink="true">http://osnews.com/thread?</guid>
			<description>Hi Tony,<br />
<br />
Your article gives an interesting reading and it is very close to my own experience using SunOS and Solaris for longer than 15 years. Yet, I must differ with you on the actual rigourousness of the tests, because the optimization flags you used are *very different*; as it is your performance comparisons are between equivalent to comparing apples and oranges. In order to have equivalnet testing conditions, you should have used &quot;gcc -O3 -march=ultrasparc -mcpu=ultrascparc [-m64]&quot;, because using -mcpu alone, you one set up timer switches but take no advantage of particular register optimizations available in the target architecture. On the same venue, &quot;-xfast&quot; is the bane of the SunPro compilers, it creates binaries that as a matter of fact, contain ABI imcompatibilities with system shared libraries!!! Rather, you should have used &quot;cc -xO3 -Olimit= -xarch=v8plusa|v9a&quot; to have equivalent binaries and therefore a valid comparative test.<br />
<br />
In summary, if I were your technical editor or your academic supervisor, I'd have you repeat all the experiments with an adjusted experimental model.</description>
			<pubDate>Thu, 05 Feb 2004 13:53:00 GMT</pubDate>
			<author>donotreply@osnews.com (Anonymous)</author>
			<category>Comments</category>
		</item>
	</channel>
</rss>
