From ee4d17052580c64342c19e2edc23e0f49bd8fd2a Mon Sep 17 00:00:00 2001 From: ceriel Date: Tue, 17 Mar 1987 14:42:12 +0000 Subject: [PATCH] Made constants dependant on size of machine --- util/ncgg/param.h | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/util/ncgg/param.h b/util/ncgg/param.h index e884bed6c..2b64c7032 100644 --- a/util/ncgg/param.h +++ b/util/ncgg/param.h @@ -8,25 +8,32 @@ * Miscellaneous sizes, tunable */ -#define MAXREGS 40 -#define MAXPROPS 30 -#define MAXTOKENS 100 +#include +#if BIGMACHINE +#define BORS(x,y) x +#else +#define BORS(x,y) y +#endif + +#define MAXREGS BORS(40,30) +#define MAXPROPS BORS(30,20) +#define MAXTOKENS BORS(100,60) #define MAXATT 6 -#define MAXSETS 150 -#define MAXINSTR 200 -#define MAXSTRINGS 250 -#define MAXNODES 500 -#define EMPATMAX 20 -#define MAXPATTERNS 40 +#define MAXSETS BORS(150,100) +#define MAXINSTR BORS(125,200) +#define MAXSTRINGS BORS(250,150) +#define MAXNODES BORS(500,350) +#define EMPATMAX BORS(20,10) +#define MAXPATTERNS BORS(40,30) #define MAXALLREG 5 -#define MAXINSTANCES 500 -#define MAXMOVES 40 +#define MAXINSTANCES BORS(500,300) +#define MAXMOVES BORS(40,20) #define MAXTESTS 10 -#define MAXSTACKS 30 -#define MAXCOERCS 50 -#define MAXSPLCOERC 20 +#define MAXSTACKS BORS(30,20) +#define MAXCOERCS BORS(50,30) +#define MAXSPLCOERC BORS(20,10) #define MAXSPLIT 3 -#define MAXPATBYTES 7000 +#define MAXPATBYTES BORS(14000,7000) #define MAXREGVAR 10 #define MAXSOURCELINES 6000