1830177 Members
2510 Online
109999 Solutions
New Discussion

Regarding HP Unix C89

 
Sreedhar Gupta
Occasional Contributor

Regarding HP Unix C89

Hi all,
I am new to HP Unix platform. Is HP Unix C89 is same as HP Unix ANSI C compiler? Is HP Unix C89 will ship with OS? And what is the difference between cc & aCC compilers. Can any one light me in this regard.

Thanks & Regards
Sreedhar Gupta
2 REPLIES 2
Mike Stroyan
Honored Contributor

Re: Regarding HP Unix C89

c89 is the HP Unix ANSI C compiler, also known as cc. It is not standard with the OS. The /usr/ccs/bin/cc_bundled that comes with the OS is only intended for rebuilding kernel config files.

aCC is the ANSI C++ compiler.

If you invoke cc as c89 it is the same as "cc -Aa", which enables ansi features and has a very strict ANSI set of names from header files. That can be good for avoiding any symbol conflicts between your code and the OS. It can be bad because you usually want to use header file features that are not strict ANSI standard. The header file symbols can be turned on a little at a time with defines documented in stdsyms(5), http://www.docs.hp.com./cgi-bin/onlinedocs.py?mpn=B2355-90684&service=hpux&path=../B2355-90684/00/00/72
Mike Stroyan
Honored Contributor

Re: Regarding HP Unix C89

I forgot to add-
You can learn about the HP-UX C compiler products at http://www.hp.com/go/c and the C++ compiler products at http://www.hp.com/go/c++ .
There are also open source compilers available at http://www.hp.com/go/gcc .