- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: What's /bin/cc
Categories
Company
Local Language
Forums
Discussions
Knowledge Base
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Knowledge Base
Forums
Discussions
- Cloud Mentoring and Education
- Software - General
- HPE OneView
- HPE Ezmeral Software platform
- HPE OpsRamp
Knowledge Base
Discussions
Forums
Discussions
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
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
01-01-2008 09:02 PM
01-01-2008 09:02 PM
What's /bin/cc
I am using a HP 11.11 PA-RISC box.
Was aware of the aCC compiler which works both as C & CC compiler.
Now what's /bin/cc
Its a link to /usr/ccs/bin/cc which in turn is to /usr/ccs/bin/cc_bundled
Looks like its the C compiler, then how do i determine its version.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2008 09:11 PM
01-01-2008 09:11 PM
Re: What's /bin/cc
Replying to check
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2008 10:00 PM
01-01-2008 10:00 PM
Re: What's /bin/cc
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2008 10:08 PM
01-01-2008 10:08 PM
Re: What's /bin/cc
% /bin/cc -V
%
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2008 10:21 PM
01-01-2008 10:21 PM
Re: What's /bin/cc
On my 11.23,
# cc -V
(Bundled) cc: HP C/aC++ B3910B A.06.12 [Oct 11 2006]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2008 10:41 PM
01-01-2008 10:41 PM
Re: What's /bin/cc
aCC does the work of both C & C++ right?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-01-2008 11:51 PM
01-01-2008 11:51 PM
Re: What's /bin/cc
the -V option alsow doesnot work for me...
I know it is old so normaly I will install a gcc product
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2008 04:00 AM
01-02-2008 04:00 AM
Re: What's /bin/cc
get it to admit which compiler it is:
dy # /bin/cc -v
(Bundled) cc: NLSPATH is /usr/lib/nls/msg/%L/%N.cat:/usr/lib/nls/msg/C/%N.cat:
(Bundled) cc: CCOPTS is not set.
(Bundled) cc: INCLUDIR is INCLUDIR=/usr/include
When you get desperate, there's always
"strings":
dy # strings /bin/cc | grep -i bundled
HP92453-01 A.11.01.21 HP C (Bundled) Compiler
(X(Bundled) cc
(That wasn't too bad.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2008 04:27 AM
01-02-2008 04:27 AM
Re: What's /bin/cc
The /bin/cc -> /usr/ccs/bin/cc is the internal OS bundles C compiler.The bundled C compiler /usr/ccs/bin/cc is used for kernel compilation.
Robert-Jan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2008 05:03 AM
01-02-2008 05:03 AM
Re: What's /bin/cc
$ what /usr/ccs/bin/cc_bundled
/usr/ccs/bin/cc_bundled:
HP92453-01 A.11.01.21 HP C (Bundled) Compiler
$ Sep 8 2000 23:13:51 $
If you have the aCC compiler, you will see it installed in the /opt/aCC directory. Or you can use swlist to show the product filesets:
swlist -l fileset ACXX
If swlist shows ACXX not found, then you'll need to purchase the compiler from HP, or download GCC for free.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2008 05:55 AM
01-02-2008 05:55 AM
Re: What's /bin/cc
If you are on PA, you must provide a source file to get the version with -V.
There is no need to determine the version of the bundled C compiler since it isn't updated.
>aCC does the work of both C & C++ right?
The aC++ compiler on PA has an -Ae option for C. But if you want the C compiler you should use the C compiler, cc. You now get both in the same bundle.
On IPF, there is only one compiler and one set of bits, that does both.
>Steven: When you get desperate, there's always "strings":
what(1) works a little nicer.
>Bill: the bundled C compiler is the K&R version,
This is no longer true on IPF.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-02-2008 10:58 PM
01-02-2008 10:58 PM
Re: What's /bin/cc
Since which version does aCC comes with cc. I am using 3.63 and it doesn't have it. For that do i need to use the -Ae option.
For Itanium platforms, does aCC by default compile both C & C++ code?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2008 01:43 AM
01-03-2008 01:43 AM
Re: What's /bin/cc
K&R is the opposite of everything that is good and pure. :-) Non-Standard, not ANSI C.
>Since which version does aCC comes with cc. I am using 3.63 and it doesn't have it.
Both aC++ and PA HPC are bundled in the same product B9007AA. This was with the A.03.70 version in 2006.
>For that do i need to use the -Ae option.
If you don't have ANSI C installed and you don't have B9007AA.
>For Integrity, does aCC by default compile both C & C++ code?
No. You use cc if you want C, aCC if you want C++. If you use aCC -Ae, you're compiling C, but why make it hard on yourself with extra typing.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2008 01:51 AM
01-03-2008 01:51 AM
Re: What's /bin/cc
Then how come i have it even though i have 3.63
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2008 02:06 AM
01-03-2008 02:06 AM
Re: What's /bin/cc
Well, more correctly, B9007AA contains aC++ and HP HPC. One PA, each has their own versioning.
>Then how come i have it even though i have A.03.63
You could have purchased B3901BA separately or you don't have /opt/ansic but have the bundled C compiler. Your initial question indicated the latter.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2008 02:15 AM
01-03-2008 02:15 AM
Re: What's /bin/cc
This one comes by default with the system, right. No matter whether you have aCC or not.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2008 03:30 AM
01-03-2008 03:30 AM
Re: What's /bin/cc
Yes. This is why you might want to use aCC -Ae.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2008 03:34 AM
01-03-2008 03:34 AM
Re: What's /bin/cc
> K&R is the opposite of everything that is good and pure. :-) Non-Standard, not ANSI C.
Slightly misleading! K & R stands for Kernighan and Ritchie, the authors of The C Programming Language (the book; Dennis Ritchie was largely responsible for the original language itself). The language as described in the first edition of this book is known as "K&R C".
The current, second, edition of the book describes the language as defined in the ANSI C standard.
Andrew
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-03-2008 04:33 AM
01-03-2008 04:33 AM