Ilya Zakharevich on Sun, 10 Nov 2002 01:24:04 -0800


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

Re: sizeof(long) > sizeof(long*)?


On Sun, Nov 10, 2002 at 01:16:56AM -0800, Ilya Zakharevich wrote:
> On Mon, Nov 04, 2002 at 08:07:31PM +0100, Bill Allombert wrote:
> > On Fri, Nov 01, 2002 at 12:13:16AM -0800, Ilya Zakharevich wrote:
> > > On which architectures can PARI run with sizeof(long) > sizeof(long*)?
> > > I tested, and it does not work on x86.
> > 
> > None, as far as I know.
> > None of the 11 architectures I have access to exhibit this behaviour.
> 
> This patch kinda-allows compiling with GEN = long long*.  The result
> of make bench is

I forgot to mention how to compile it.  Configure with arch=none, and
edit the Makefile of the architechture subdirectory; change
SIZEOF_LONG and add -DPARIWORD_IS_LONG_LONG to the CC macro.

The following patch simplifies testing:

Yours,
Ilya

--- ./config/Makefile.SH-pre	Wed Oct 23 14:58:14 2002
+++ ./config/Makefile.SH	Sun Nov 10 01:19:24 2002
@@ -168,7 +168,7 @@ if test -z "$DLLD"; then
 else
   exec="gp-sta gp-dyn"
 fi
-doexec="env \"LD_LIBRARY_PATH=.;\$\$LD_LIBRARY_PATH\" \$(SHELL) $src/test/dotest $sizeof_long"
+doexec="env \"LD_LIBRARY_PATH=.;\$\$LD_LIBRARY_PATH\" \$(SHELL) $src/test/dotest \$(SIZEOF_LONG)"
 case "$sizeof_long" in
   4) numbits=32;;
   8) numbits=64;;
@@ -201,6 +201,8 @@ SHELL      = $make_sh
 AS         = $AS
 ASFLAGS    = $ASFLAGS
 AR	   = ar
+
+SIZEOF_LONG= $sizeof_long
 
 CC_FLAVOR  =
 CC         = $CC \$(CC_FLAVOR)