Igor Schein on Thu, 28 Oct 2004 20:02:11 +0200


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: asm inline hppa level0 kernel


On Thu, Oct 28, 2004 at 03:05:57PM +0200, Bill Allombert wrote:
> Hello PARI-dev,
> 
> The attached patch replace the asm hppa kernel with a inline version
> that work with gcc.
> 
> This is for 32-bit only.
> 
> You need to build with --kernel=hppa.
> 
> It was only tested with gcc on GNU/Linux.
> 
> Please test on others platforms.
> 
> I think the code of the different level0 kernel could be cleaned up 
> a bit: I found
> 
> 1) obsolete functions
> 2) no support for LOCAL_HIREMAINDER/LOCAL_OVERFLOW
> 3) code duplication
> 4) use of inferior alternative.
> 
> Performance of the hppa kernel (gcc 3.3.4, dual PA8600 at 550MHz,
> linux 2.4.26)
> 
> ASM inline kernel:
> 
> +++ Total bench for gp-sta is 2890
> +++ Total bench for gp-dyn is 2976
> 
> Portable kernel:
> 
> +++ Total bench for gp-sta is 4176
> +++ Total bench for gp-dyn is 4264

I can confirm a similar ratio on HPUX - 2628 vs 4390 for gp-sta.  Now,
how about a 64bit version, Bill?

Igor