- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- ANSI C and GCC
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
тАО04-30-2002 06:08 AM
тАО04-30-2002 06:08 AM
Do I need GCC after that? Is ANSI C and GCC same ?? (I know GCC is freeware) ;-)
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2002 06:10 AM
тАО04-30-2002 06:10 AM
Re: ANSI C and GCC
GL,
C
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2002 06:13 AM
тАО04-30-2002 06:13 AM
SolutionHP's ANSI compiler will compile both ANSI C and K & R C. If you also need to do C++ you will need the aC++ compiler as well. aC++ will compile both ANSI C and C++ but will not compile K & R C. If you need to do K & C, ANSI, and C++, you will need both HP compilers.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-30-2002 06:19 AM
тАО04-30-2002 06:19 AM
Re: ANSI C and GCC
As it's free I use it. Saves a lot of grief.
HTH
Dave.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-01-2002 02:44 PM
тАО05-01-2002 02:44 PM
Re: ANSI C and GCC
Running your code past another compiler is also a good debugging technique. Sometimes the warning or error messages from one aren't as helpful as the other.
(I use "gcc -Wall -pedantic" for this purpose a lot, to help maximize portability.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2002 01:57 AM
тАО05-02-2002 01:57 AM
Re: ANSI C and GCC
Be sure to keep up to date with HP's patches for optimal performance.
HP C-ANSI-C is rather picky on ANSI features, where gcc allows a lot of deviations. gcc is great in warnings and though less picky, it prevents you from errors.
We use HPc to compile programs and applications that we ship to clients, and once in a while compile everything again with gcc to see if new warnings appear.
*IF* you choose for the free gcc, try to use the most recent stable version (3.0.4 at the moment), because GNU has moved HP-PA up in priority for primary target architectures, and specific HP-PA changes are made on a daily basis at the moment.
Do not try to use 3.1 yet.
both HPc and gcc are 32 *or* 64 bit compilers, you cannot link 32bit objects to 64bit object or visa versa
HPc and gcc will run nicely together without interference. I've even got 4 gcc versions that do not interfere (takes some wrappers and some precautions, but it works)
HTH