GNU GCC Vs Sun's Compiler on a SPARC
JigSaw writes "When doing research for his evaluation of Solaris 9 on his Ultra 5, Tony Bourke kept running into the same comment online over and over again: Sun's C compiler produces much faster code than GCC does. However, he couldn't find one set of benchmarks to back this up and so he did his own."
It's the same guy who bought a Sun system on ebay and has been writing columns on shiny new (to him anyway) system. The specs from the purchase article:
The system I'm using is a second generation of the Ultra 5, released in late 1998. Here are the specs:
System: Sun Ultra 5
Processor: UltraSPARC IIi 333 MHz, 2MB cache
Memory: 256 MB
HD: Seagate Medalist 7200 RPM IDE Pro 9140 8.4 GB
IDE Controller: Built-in UDMA2, 33 MB/s max
CD-ROM: 32x IDE
Video Controller: Sun PGX24 (ATI Mach64), 4 MB VRAM
Network: Built-in 10/100 NIC (hme, "Happy Meal" interface)
My knowledge of sun processors is a little lacking in the UltraSPARC II range, so I'll leave it to you to evaluate this one, My only exposure is the dead server CPU module for a paperweight. It and a foxtrot on the corkborad are my own version of the geek purity test.
Degaussing scares the bad magnetism out of the monitor and fills it with good karma.
The OpenSSL code has highly optimized assembly for those functions under x86. On other archs it is just C code that the compiler has to optimize.
That may explain the speed difference that you are seeing.