This is Google's cache of http://hpux.cs.utah.edu/hppd/ansi.html. It is a snapshot of the page as it appeared on 17 Jul 2008 02:37:55 GMT. The current page could have changed in the meantime. Learn more ยป

Text-only version
These terms only appear in links pointing to this page: hppd ansi html  
The HP ANSI C Compiler
The Porting and Archiving Centre for HP-UX  
 Home
 Catalogue
 FAQ
 What's New?
 

Search for a package

Package name
Description
Author

Search Term

Case Sensitive

The HP ANSI C Compiler

So you've bought your HP-UX system and suddenly find nothing will build from our archive ! Well, it turns out that HP have "unbundled" the ANSI C compiler from the standard ("Instant Ignition") system and you have to pay extra for it - you order the ANSI C Developer's Toolkit to get it and you will receive a codeword for it to unlock it from the Application CD-ROMs.

HP-UX 10.X filesets required for the HP ANSI C compiler

Typing "/usr/sbin/swlist" in HP-UX 10.X should reveal something like this in your "Bundle(s)" section:
B3898AA_APZ  B.10.20.02  HP C/ANSI C Developer's Bundle for HP-UX 10.20 (S700) 

You can further check your installation by typing this:

$ what /opt/ansic/bin/cc
/opt/ansic/bin/cc:
              LINT A.10.32.22 CXREF  A.10.32.22
        HP92453-01 A.10.32.22 HP C Compiler
         /usr/lib/libc: $Revision: 76.3 $
If /opt/ansic/bin/cc isn't present on your system, then you have the bundled (non-ANSI) C compiler and you can find the version via this command:
$ what /usr/ccs/bin/cc
/usr/ccs/bin/cc:
        HP92453-01 A.10.32.00 HP C (Bundled) Compiler
         /usr/lib/libc: $Revision: 76.3 $
Here's the revision history of the HP-UX 10.X C compiler:
  • A.10.06 (Bundled)
    This is what you get when you haven't bought the ANSI C compiler for HP-UX 10.01. It's nicknamed the "brain-dead C compiler" because it's completely useless for anything other than rebuilding the /hp-ux kernel. You should unpack the ANSI C compiler from the Application CD-ROMs, assuming you've bought it !

  • A.10.07 (Bundled)
    The HP-UX 10.10 version of A.10.06. Equally useless.

  • A.10.30 (Application CD-ROMs - codeword-protected)
    The unpatched HP ANSI C compiler for HP-UX 10.10. We patched our compiler fairly quickly, so didn't spot any obvious bugs in this.

  • A.10.32.00 (Bundled)
    The HP-UX 10.20 version of A.10.06. Equally useless.

  • A.10.32.03 (HP-UX 10.20 application CD-ROMs)
    The unpatched HP ANSI C compiler for HP-UX 10.20. This release makes history for HP as being the first time the ANSI C compiler was free for a limited period (until 31st October 1997) since HP-UX 8.X.

    [16 intermediate patches here - all of which have been obsoleted and can be ignored]

  • A.10.32.22 (HP SupportLine patch)
    Now this gets tricky, because there are four patches you need to get:

    Patch (Europe) Patch (US) Description Comment
    PHSS_17507 PHSS_17507 Patches the HP ANSI C
    compiler
    Fixes 132 compiler bugs.
    11.6MB download - only
    apply to compiler revision
    A.10.30 or later
    PHSS_19018 PHSS_19018 Patches /usr/lib/milli.a Now for 10.00 through to 10.20
    PHSS_17903 PHSS_17903 Patches the linker (ld) 1.3MB download
    PHSS_17225 PHSS_17225 Patches /usr/lib/dld.sl Requires a reboot !
    Use "-x autoreboot=true"

To download the patches, we recommend that you use "Save Link As..." (right button click on the patch link if you are using Netscape) - once downloaded, just run the script with "sh patchname" to unpack the .text and .depot files - you can then use swinstall (or swcopy) to apply the patch as documented in the .text file. Also remember to de-install (via swremove) any prior patches for the compiler or linker before installing a newer patch.

HP-UX 9.X filesets required for the HP ANSI C compiler

The following HP-UX 9.X filesets should be unpacked from the February 1994 or later Application CD-ROMs (requires a codeword):
  • C ... the C compiler
  • C-AUX ... lex and yacc
  • C-TOOLS ... lint, cxref and cflow (plus a few others)
  • DEBUGGERS ... xdb and pxdb
  • DEBUGGERS-MAN ... man page for xdb and pxdb
  • C-HELP ... VUE (helpview) on-line help for the C compiler
You can check that these are installed by looking inside the directory /system, where there should be a directory for each of the 6 filesets above. It is also possible to find out what version of the compiler you have by typing:
$ what /bin/cc
/bin/cc:
        HP92453-01 A.09.84 HP C Compiler
        (CXREF  A.09.84)
Here's the revision history of the HP-UX 9.X C compiler:
  • A.09.19 (Bundled)
    This is what you get when you haven't bought the ANSI C compiler. It's nicknamed the "brain-dead C compiler" because it's completely useless for anything other than rebuilding the /hp-ux kernel. You should unpack the ANSI C compiler from the Application CD-ROMs, assuming you've bought it !

  • A.09.28
    One of the earliest HP SupportLine patches available. Long since superseded.

  • A.09.34
    This was the the last patch release before +O4 and other optimisation flags were introduced and is probably the most bug-free release to date because of that ! Note that you cannot patch this release - to upgrade it, you must install from your CD-ROMs (see below).


No turning back from here for the 9.X compiler

To upgrade your HP-UX 9.X ANSI C compiler to any of the newer releases listed below, you must install the HP ANSI C compiler from the Application CD-ROMs (February 1994 or later) - it is no longer acceptable to apply one of the later patches to upgrade, say, your A.09.34 release to the A.09.84 release.
  • A.09.61 (CD-ROM only - DART #15 through to #21)
    A major release that implemented a whole host of new optimisation flags, including +O4 which takes ages to "link", plus a nasty set of new optimiser bugs of course.

  • A.09.63 (SupportLine patch)
    Still had a serious +O3 +z bug (used when building shared libraries).

  • A.09.64 (SupportLine patch)
    The +O3 +z bug finally got hit on the head here.

  • A.09.66 (SupportLine patch)
    Still had a few bugs that cropped up with the optimiser, impacting the compilation of xpilot at +O4 +Oall for instance. This had 2 releases, both numbered A.09.66 would you believe !

  • A.09.69 (SupportLine patch)
    Unfortunately the bug I reported was fixed internally at HP, but the fix was accidentally left out of the released version :-( I've also reported a second bug we've just discovered. Note that it's now a Series 700/800 patch, rather than just for the Series 700.

  • A.09.70 (SupportLine patch)
    Aaaarrgghh - both bug 1 and bug 2 that were in A.09.69 weren't fixed in this version !!

  • A.09.73 (CD-ROM only - DART #22 onwards)
    After 14 months of the bug-ridden A.09.61 release being supplied to users on CD-ROM, HP finally update their C compiler that they ship, only for it to be virtually instantly superseded by a SupportLine patch !

  • A.09.75 (SupportLine patch)
    The two bugs that have persisted for a while have now been fixed with this patch.

  • A.09.77 (SupportLine patch)
    Another dozen or so optimisation bugs fixed, although Peter Eiseman recently discovered an unfixed bug.

  • A.09.82 (SupportLine patch)
    Didn't spent much time looking at this because A.09.83 followed fairly rapidly !

  • A.09.83 (SupportLine patch)
    All our user machines are now at 10.10, so the 9.X compiler is no longer being used for binary builds and from now on we can't fully comment on bugs.

  • A.09.84 (SupportLine patch)
    You can get download this from the US SupportLine as patch PHSS_10357, providing you have already installed A.09.61 or later first of course.

 

       
Home | Catalogue | FAQ | What's New? | Contact Us
A service by Connect Internet Solutions Hewlett Packard Logo