On Mon, Dec 05, 2005 at 07:57:43AM -0800, Steve Ellcey wrote: > > > > So, in short, my questions are: is gmp-4.1.4 supposed to work on > > > > ia64-hpux? > > > > > > > > No, it is not. It might be possible to get either the LP64 or > > > > the ILP32 ABI to work, but even that requires the workaround you > > > > mention. Don't expect any HP compiler to compile GMP correctly > > > > though, unless you switch off optimization. > > > > > > > > If it's really compiler problems, this is one more reason for pulling > > gmp to the toplevel gcc, so it can be built with a sane compiler. > > > > Richard. > > FYI: What I do to compile gmp on IA64 HP-UX is to configure gmp with > '--host=none --target=none --build=none'. This avoids all the target > specific code. I am sure the performance stinks this way but since it > is used by the compiler and not in the run-time I haven't found it to be > a problem. Of course I don't compile any big fortran programs either.
GMP/MPFR are used only in frontend (primarily for constant folding and Fortran array indices). The types that use GMP/MPFR are converted in the trans-*.c files to types appropriate for the underlying hardware. We at most need 128-bits of precision, and I believe the hardware specific GMP code is most useful for thousands of bits of precision. In other words, the performance impact is probably not that substantial. -- Steve