On May 29, 2006, at 4:40 PM, UNIX admin wrote:
I just happen to be working on porting a GCC written application to
Sun Studio 11. And all I can say is, GCC is one of the worst,
brain dead compilers in existence. If it were up to me, I'd lock
all the GCC developers up on criminal charges for the rest of their
lives, and explicitly forbid them to ever touch a computer by a
means of a court order.
I'd give them shovels and pickaxes, that's what. Those guys are
only good to do road work, not work on compilers.
To state my point, the Sun Studio C and C++ compilers picked a TON
of warnings and just plain BAD CODE, that the braindead GCC
compiler didn't even detect.
And I didn't even get to the fact that Sun Studio 11 is now
available for Linux, for free, so there is NO EXCUSE for using that
GCC junk any more.
On top of all that, Sun Studio can do just unbelievable
optimizations like code reordering, binary optimizations and many
other things on x86, x64 and SPARC that GCC can't even touch. Plus
it just generates faster, better and tighter code.
I'm sure you appreciate that writing a compiler isn't exactly a walk
in the park. I've been using Sun's compiler professionally for
almost 10 years. It's a great compiler but it has had its fair share
of problems, especially the C++ compiler. Me and the people I work
with have spent a lot of time finding the exact version, patch level
and combination of compiler options that works for our suite of
applications.
We are currently stuck on Forte version 6, update 2 and attempts to
upgrade has been unsuccessful because of show stopping bugs in the
Sun C++ compiler. We are currently trying Sun Studio 11 which almost
works. It has problems with destructors called for objects never
created in tertiary operators (I believe this is a known bug). We
also have had problems with try/catch statements failing to catch
exceptions. SS11 seems to have addressed the last one but it only
seems to work reliably if you compile with -instances=extern, which
is less than ideal.
Krister Joas
_______________________________________________
opensolaris-discuss mailing list
[email protected]