users-prolog
[Top][All Lists]
Advanced

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

Re: MAX_ATOM, ATOM_SIZE, etc


From: Duncan Patton a Campbell
Subject: Re: MAX_ATOM, ATOM_SIZE, etc
Date: Sat, 25 Mar 2006 15:57:38 -0700

[howto go]> about recompiling to expand the 
> 65k limit on the Gprolog atom table, 
> but there are no further references.
> 
> How do I go about doing this?  Is this currently possible or is some
> other mechanism prefered? 
> 
> Thanks,
> 
> Duncan (Dhu) Campbell

Since I couldn't find it in the docs (not that it isn't there;)
here are my hacks..

in gprolog-1.2.19/src/EnginePl

        ./atom.c: (@line 59)

#define RADIX                      67
//Dhu #define INV_RADIX_MOD_MAX_ATOM     19563  /* see prog. euclide.c */
//#define INV_RADIX_MOD_MAX_ATOM     281707     /* see prog. euclide.c */
//Dhu ./euclide 67 2097152 ==> 281707.
// 1 << 21 = 2097152 ==> ATOM_SIZE in gprolog.h
//#define INV_RADIX_MOD_MAX_ATOM     61099115   /* see prog. euclide.c */
#define INV_RADIX_MOD_MAX_ATOM     10767467     /* see prog. euclide.c */

        ./pl_params.h: (@line 33)

//Dhu ATOM_SIZE was 16  -- 65536, 21 gives 2097152, with hash of 281707
//Dhu ATOM_SIZE was 16  -- 65536, 24 gives 16777216, with hash of 10767467
#define ATOM_SIZE                  24
#define MAX_ATOM                   (1 << ATOM_SIZE) /* number of elements */

        ./gprolog.h: (@line 226)

//Dhu ATOM_SIZE was 16  -- 65536, 21 gives 2097152, with hash of 281707
//Dhu ATOM_SIZE was 16  -- 65536, 24 gives 16777216, with hash of 10767467
#define ATOM_SIZE                  24
#define MAX_ATOM                   (1 << ATOM_SIZE) /* number of elements */

Dhu


> 
> ------------------------------
> 
> _______________________________________________
> Users-prolog mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/users-prolog
> 
> 
> End of Users-prolog Digest, Vol 37, Issue 6
> *******************************************
> 

Attachment: pgpEoUq6ZTwKJ.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]