1832285 Members
2654 Online
110041 Solutions
New Discussion

Re: GCC vs. aC++

 
SOLVED
Go to solution
Olivier Masse
Honored Contributor

GCC vs. aC++

Hi,

I've been using GCC for years to compile all my stuff. I never considered purchasing the HP compiler since GCC has always been readily available and I didn't have to waste any time having someone issue a PO. :)

However, my company is starting to rely more and more on open-source software for mission-critical apps. The Solaris guys all use Sun's compiler and they were surprised to learn that I used GCC; it is good enough for me as far as I'm concerned.

Execept for the fact that aC++ probably produces more optimized code, is there any
other reason why I should not stick with GCC.

I'm not looking into compiling homemade kernel modules or doing any PA-RISC specific development so any features like these are of no interest to me.

Thanks
4 REPLIES 4
harry d brown jr
Honored Contributor
Solution

Re: GCC vs. aC++

I prefer to use gcc, gmake, and binutils over aC++ because most OpenSource won't compile or build with aC++ and make.

The packages from http://hpux.ee.ualberta.ca/ are compiled using gcc

live free or die
harry d brown jr
Live Free or Die
Stephen Keane
Honored Contributor

Re: GCC vs. aC++

I use gcc, and have done for a number of year. Mainly because I develop cross-platform applications and it runs on them all.

Also, it's free.

Look at the forum and compare problems using gcc against problems using aCC, not entirely fair unless you know the proportion of users who use each compiler I agree.
D Block 2
Respected Contributor

Re: GCC vs. aC++

Thanks to the Open Source Community, gcc is the norm now. as you pointed out, Solaris developers have an option too. Unless you are doing complex optimization on PA-RISC, the option of having gcc is the standard.

The only risk you have is possible non-suported libraries and calling HP for production code support is out.

we actually use both for our production system: aC++ and gcc.

if one uses Oracle 10g, then one requirement is the ANSI C compiler from HP.
Golf is a Good Walk Spoiled, Mark Twain.
dirk dierickx
Honored Contributor

Re: GCC vs. aC++

even in gcc version 4.0 C++ is kind of lagging compared to other compilers. so if you need the best possible C++ compiler you can go for aC++, but for all other cases, and certainly when only using C, go for gcc.