- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- gcc OR HP CC ( read this please)
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2003 06:20 AM
тАО07-28-2003 06:20 AM
gcc OR HP CC ( read this please)
Some of you may or may not have used depot file from the HPUX Archive Centres before.
About two years ago we switch from using hp CC and aCC to gcc and g++.
I would like to know your opinions about switching back to HP cc and aCC.
Please can you be specific and try not to change the subject. Also points only is given one per person, and any extra posting will not get any points.
Any unrelated ideas will get zero point.
Thanks
Mehdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2003 06:33 AM
тАО07-28-2003 06:33 AM
Re: gcc OR HP CC ( read this please)
First off, I'd like to know why you're contemplating switching back. Are you unhappy with the Gnu versions? Do you perceive some advantage to the HP versions?
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2003 06:49 AM
тАО07-28-2003 06:49 AM
Re: gcc OR HP CC ( read this please)
As long as you dont mind the cost go for it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2003 06:57 AM
тАО07-28-2003 06:57 AM
Re: gcc OR HP CC ( read this please)
From the personal point of view, I would prefer gcc. And I don't have any problem with Gnu tools at all. I personally prefer to stay on gcc!!.
Thanks
Mehdi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2003 07:01 AM
тАО07-28-2003 07:01 AM
Re: gcc OR HP CC ( read this please)
Are you not allowed to use gcc anymore ?
Robert-Jan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2003 07:03 AM
тАО07-28-2003 07:03 AM
Re: gcc OR HP CC ( read this please)
As Stefan says, HP's compilers will be optimized for your platform. I don't have too much experience with the Gnu versions as we've always had the HP ANSI/C compiler and never had occasion to try gcc. I was as much curious about your reasoning as anything else.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2003 07:32 AM
тАО07-28-2003 07:32 AM
Re: gcc OR HP CC ( read this please)
First, ANSI is not always ANSI. There are many instructions and methods that work in one format, I.E. Sun4U Compilers, then wont in HP-ACC. Both are supposed to be ANSI, yet neither conform 100% to the rules, or interpret the rules completely different from each other.
GNU-C is great as it's consistant across the board. Using a method on HP-UX will work the same on SunOS. There is little to no difference in how things work on any OS, unless the OS does not support the instruction or method.
Because of the annonymouty of GNU, it does not optimize nearly as well as proprietary compilers. Dont let the -O option fool you :)
By using proprietary compilers, you will see appliction performance increast 140% on average. (This is true with IBM AIX, SGI Irix, HP-UX, and Solaris/SunOS).
So if your not concerned about performance of the application, stick with gnu. If you want application speed, then proprietary compilers.
Sincerely,
Shannon Petry
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2003 09:28 AM
тАО07-28-2003 09:28 AM
Re: gcc OR HP CC ( read this please)
If you have to modify the source code to get it to compile cleanly with aCC you may find that it will not build with gcc.
This will only be a problem for people who like to download the source and build it themselves.
gcc is free, aCC is not.
Personally I would be happy to download code that would build using aCC (all our developers use aCC and we use gcc as a 'standards checker').
Of course, if you were to insist that the code can be built using aCC or gcc then the issue disappears.
Michael.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2003 09:49 AM
тАО07-28-2003 09:49 AM
Re: gcc OR HP CC ( read this please)
I would think off the top of my head that going with cc and the PA-RISC optimized compiler would be the way to go.
There are probably reasons to have both, especially when you are working with some gnu source code.
The best way to figure it out would be to do this though is to run a test.
Take a basic, functional program and compile it both ways under different names.
check the size of the binaries that come out, run the programs and drill into them with glance to see what resources they are using. You might find the results quite interesting, though I think you will find doing development with cc works out better, so long as you aren't working with gnu source code that has dependencies.
If you decide to run my suggested test, please post the results.
Regards,
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-28-2003 09:59 AM
тАО07-28-2003 09:59 AM
Re: gcc OR HP CC ( read this please)
If you carefully craft your header files with #ifdef's and keep the compiler/linker options in include files for make then moving from one environemnt to the other is very easy.
My preference is to use the HP compilers because they are fully supported and I have never had any problems getting the Gnu (or other HP-UX Porting Centre) software to compile with aCC or ANSI C. Note: If you must also compile K&R c, you will need the ANSI C compiler as well as aCC because aCC does not speak K&R.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2003 12:28 AM
тАО07-29-2003 12:28 AM
Re: gcc OR HP CC ( read this please)
On my side, i like download sources to build my own product. Why this ? I can choose location, config files, and some more specifics options (where are some specifics libraries). By this way you can more easily works with multi versions libraries (i have some samples of lib working better for some products on older versions).
I'm more Unix agnostic, then gcc is for me better as I need more and more to compile software on several OS. Most of the time, i used the tarball from the real sources. but when I need to go very fast, then the portal center is the good way.
aCC is good for performances, but is more specific, and you have to pay for it (I don't have it on all my hosts !). I already had troubles to compile using it, and less ones with gcc.
Then gcc is for me better.
ANd here's my question,
Why did the portal changed 2 years ago from aCC to gcc, anf why switch back to aCC now ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-29-2003 01:00 AM
тАО07-29-2003 01:00 AM
Re: gcc OR HP CC ( read this please)
2. For projects that need extending with the same environment later on (perl, python, automake, ...) please stick with gcc, because you cannot force people to buy an expensive compiler to use open source software and - for the majority - extending cc/aCC objects with gcc modules is not exactly the easiiest task on HP-UX.
That being said, I think their is one more very important reason to still use gcc for compiling stuff on HP-UX from the proting centers: testing gcc's parisc behaviour and your feedback to the GNU people. I've experienced that these people *do* listen, and that hp-ux pa-risc support has greatly improved since 3.0.3. It's worthwhile.
Anyway, thanks enormously for your effort!
Enjoy, have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-03-2003 12:31 PM
тАО08-03-2003 12:31 PM
Re: gcc OR HP CC ( read this please)
3.0 version.
Though I believe that aCC may optimize better
for pa-risc, then gcc (with it generic optimization).
We use gcc in our company for the reason of portability (we should provide the same big application on many different platforms), in spite of we are concerned about performance also.
The conclusion:
pa-risc only -> aCC
few platforms -> gcc 3.x.x
Sincerely,
Lev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-06-2003 12:31 AM
тАО08-06-2003 12:31 AM
Re: gcc OR HP CC ( read this please)
We are developping C++ applications that can run on different OS/platforms:
IBM AIX, SUN Solaris, HP HPUX 11.00, INTEL LINUX, Etc...
We generally use the proprietary compilers on each platform because it is generally faster than gcc.
To maintain the same code for every OS/compiler we use ifdefs.
But we always use gcc as a starter because it is the best to quickly build a program and there is a great support of the community.
On HPUX we benched aCC/gcc and the result is as said before:
size of program increases of 10 % on gcc
performance is a bit slower with gcc
Still HPUX/PA-RISC is the slower compared to others systems but that is out of the scope of the question.
As a conclusion:
gcc to build any application
aCC to tune it and get the best performance
regards
Laurent
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-29-2003 01:02 AM
тАО08-29-2003 01:02 AM
Re: gcc OR HP CC ( read this please)
Sorry about the delay. The holiday season is over now!
Thanks everyone who made the efford ( the points is been given as sign of appreciation ).
The reason for switching back to HP CC:
HP has asked us to consider switching back to HP 's CC instead of using gcc.
Why did we switch to gcc in a first place??
All the program on the Archive are free programs. Nearly all of them ( or at least most of them ) has been already tested with gcc by the original authors. Most of these program have been developed on linux platform. some of the authors didn't want to know the problem with HPUX never mind the problem that was caused by the HP CC on HPUX. specially the C++ programs was VERY hard to port to HPUX , using HP 's CC. In some cases needed to re-write of the whole/part of the program.!
I agree the code generated from HP CC are faster than the gcc, also in most cases they are even smaller than the code generated from gcc. But I think we should use something that is easily available to all HPUX users.
At the end of the day is not going to be my decision, but I just wanted to know the HPUX users opinion.
Thanks again
__Mehdi