🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.help
Article #50891

HP PA-RISC versions: thanks!

#50891
From: Tim McDaniel
Date: Fri, 23 Jul 1993 19:33
48 lines
3116 bytes
Last Friday, I posted an article titled "Versions", asking about
versions of gcc for an HP PA-RISC 9000/715 workstation running HP-UX
9.01.  I received some help from inside CONVEX and help from outside,
especially from jbuck@ohm.EECS.Berkeley.EDU (Joe Buck) and
law@snake.cs.utah.edu (Jeff Law).

Jeff Law wrote that 2.4.5, the latest version, is reasonably stable.
Further:
> "-g" is supported if you also pick up pa-gas (only available from Utah
> -- it's not in any official FSF release) and a current version of gdb.
>
> My recommendation is to pick up the "whole bundle" via anonymous ftp
> from jaguar.cs.utah.edu:/dist.  In there you'll find gcc-2.4.5.u5,
> gdb-4.9.u4, pa-gas.u8, and libg++-2.4.u1.  You can either pick them in
> source and build them yourself, or you can pick up the pre-built
> binaries from hpuxbin.tar.Z.
>
> The ".uX" releases denote "Utah" releases.  The "Utah" releases are
> generally a little better tested, and are a little more up-to-date
> than the FSF releases.  All the changes we make are designed to help
> the PA in some manner (more optimizations, new features, fix bugs, etc).
> (Of course we integrate our changes into the FSF releases...)
>
> [ I maintain the GCC PA port for the FSF and I also work very closely with
>   Cygnus Software in maintaining the GDB port -- you're not getting
>   code which is half-assed written.  Everything I do is designed so
>   that it can/will be integrated into the official distibutions. ]

-g and gdb do seem to work, modulo the caveats in README (it doesn't
work well with shared libraries).

The HP system library doesn't support long long.  The thing I noticed is
that *printf's %lld and %llu aren't supported (they are interpreted as
%ld and %lu respectively).  I asked Jeff Law whether they've ever used
glibc, and he replied

> Never tried.  I suspect it'd be a non-trivial project as glibc needs a
> variety of assembly stubs.

I wrote a manual lltoa conversion function in the obvious,
quick-and-dirty fashion.

- strip sign
- modulo 1000000000 and divides by the same to split the number into
  three chunks
- sprintf %02lu%09lu%09lu
- strip leading zeros (except the rightmost if the number's zero)
- prepend a sign if needed
Technical Details
Message-ID: <1993Jul23.193334.14864@news.eng.convex.com>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!darwin.sura.net!convex!convex!convex!mcdaniel

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,420747169db4eb4e,start
X-Google-Attributes: gid11318c,public
X-Google-ArrivalTime: 1993-07-23 12:44:50 PST
Newsgroups: gnu.gcc.help
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!darwin.sura.net!convex!convex!convex!mcdaniel
From: mcdaniel@convex.com (Tim McDaniel)
Subject: HP PA-RISC versions: thanks!
Sender: usenet@news.eng.convex.com (news access account)
Message-ID: <1993Jul23.193334.14864@news.eng.convex.com>
Date: Fri, 23 Jul 1993 19:33:34 GMT
Nntp-Posting-Host: mozart.convex.com
Organization: Engineering, CONVEX Computer Corp., Richardson, Tx., USA
X-Disclaimer: This message was written by a user at CONVEX Computer
              Corp. The opinions expressed are those of the user and
              not necessarily those of CONVEX.
Lines: 49