- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: C Compiler
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
Forums
Discussions
Discussions
Discussions
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
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
06-28-2006 06:57 AM
06-28-2006 06:57 AM
C Compiler
#what /usr/bin/cc
/usr/bin/cc:
$Revision: 92453-07 linker linker crt0.o B.11.16.01 030316 $
HP92453-01 B.11.11.08 HP C (Bundled) Compiler
$ PATCH/11.00:PHCO_27774 Oct 3 2002 09:45:59 $
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2006 07:06 AM
06-28-2006 07:06 AM
Re: C Compiler
If you look at the files inside the patch, you can see that they are made for 32 and 64 bits versions.
OS-Core.C-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP
OS-Core.C-MIN-64ALIB,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP
OS-Core.CORE-64SLIB,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP
OS-Core.CORE-SHLIBS,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP
ProgSupport.PROG-AUX,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP
ProgSupport.PROG-AX-64ALIB,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP
ProgSupport.PROG-MIN,fr=B.11.00,fa=HP-UX_B.11.00_32/64,v=HP
http://www5.itrc.hp.com/service/cki/patchDocDisplay.do?patchId=PHCO_27774
Hope this helps,
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2006 07:09 AM
06-28-2006 07:09 AM
Re: C Compiler
It *can* however build 64bit. Not that it's usefule, but that's what you ark:
a5:/tmp 104 > echo 'int main (int argc, char *argv[]) { return (0); }' >test.c
a5:/tmp 105 > cc_bundled +DD64 -o test test.c
(Bundled) cc: "test.c", line 1: error 1705: Function prototypes are an ANSI feature.
Exit 1
a5:/tmp 106 > echo 'int main () { return (0); }' > test.c
a5:/tmp 107 > cc_bundled +DD64 -o test test.c
a5:/tmp 108 > file test
test: ELF-64 executable object file - PA-RISC 2.0 (LP64)
a5:/tmp 109 >
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2006 12:51 PM
06-28-2006 12:51 PM
Re: C Compiler
If you intend to do anything other than really trivial stuff you should obtain the "unbundled" compilers. http://software.hp.com/ might be a starting point for that.
Any of the "unbundled" HP compilers shipped since HP-UX 11.0 (circa 1997) have been able to compile applications for "LP64" - ie where longs and pointers are 64-bit. The bundled's may have been able to as well, but I've never tried it with them.
Probably already stated, but the option for "LP64" mode is +DD64 . Older compilers (11.0) would take +DA2.0W, but that has been deprecated in favor of +DD64 which covers both PA-RISC and Itanium compilation environments.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2006 03:46 PM
06-28-2006 03:46 PM
Re: C Compiler
Bundled C compiler meant for rebuilding kernel. So, it has 64 bit capabilities. But, it is not Ansi compliant. You have two choices
1) Download GCC from HP's DSPP
http://h21007.www2.hp.com/dspp/tech/tech_TechSoftwareDetailPage_IDX/1,1703,547,00.html
2) Download evaluation version of HP C compiler,
http://h20293.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=B9007AAEVAL
-Arun