From 32d38f3eb85e5a939dbb96f705f1f8f55b54931d Mon Sep 17 00:00:00 2001 From: ceriel Date: Fri, 8 Apr 1988 10:04:03 +0000 Subject: [PATCH] two versions of the parameters file: small and large --- lang/m2/comp/.distr | 3 +- lang/m2/comp/BigPars | 78 ++++++++++++++++++++++++++++++++++++++++++ lang/m2/comp/SmallPars | 78 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 158 insertions(+), 1 deletion(-) create mode 100644 lang/m2/comp/BigPars create mode 100644 lang/m2/comp/SmallPars diff --git a/lang/m2/comp/.distr b/lang/m2/comp/.distr index 300a60049..a4fcc4a42 100644 --- a/lang/m2/comp/.distr +++ b/lang/m2/comp/.distr @@ -2,7 +2,8 @@ LLlex.c LLlex.h LLmessage.c Makefile -Parameters +BigPars +SmallPars Resolve SYSTEM.h Version.c diff --git a/lang/m2/comp/BigPars b/lang/m2/comp/BigPars new file mode 100644 index 000000000..d22fe0880 --- /dev/null +++ b/lang/m2/comp/BigPars @@ -0,0 +1,78 @@ +!File: errout.h +#define ERROUT STDERR /* file pointer for writing messages */ +#define MAXERR_LINE 100 /* maximum number of error messages given + on the same input line. */ + + +!File: idfsize.h +#define IDFSIZE 128 /* maximum significant length of an identifier */ + + +!File: numsize.h +#define NUMSIZE 256 /* maximum length of a numeric constant */ + + +!File: strsize.h +#define ISTRSIZE 32 /* minimum number of bytes allocated for + storing a string */ +#define RSTRSIZE 8 /* step size in enlarging the memory for + the storage of a string */ + + +!File: target_sizes.h +#define MAXSIZE 8 /* the maximum of the SZ_* constants */ + +/* target machine sizes */ +#define SZ_CHAR ((arith)1) +#define SZ_SHORT ((arith)2) +#define SZ_WORD ((arith)4) +#define SZ_INT ((arith)4) +#define SZ_LONG ((arith)4) +#define SZ_FLOAT ((arith)4) +#define SZ_DOUBLE ((arith)8) +#define SZ_POINTER ((arith)4) + +/* target machine alignment requirements */ +#define AL_CHAR 1 +#define AL_SHORT ((int)SZ_SHORT) +#define AL_WORD ((int)SZ_WORD) +#define AL_INT ((int)SZ_WORD) +#define AL_LONG ((int)SZ_WORD) +#define AL_FLOAT ((int)SZ_WORD) +#define AL_DOUBLE ((int)SZ_WORD) +#define AL_POINTER ((int)SZ_WORD) +#define AL_STRUCT ((int)SZ_WORD) + + +!File: debugcst.h +#undef DEBUG 1 /* perform various self-tests */ + +!File: inputtype.h +#define INP_READ_IN_ONE 1 /* read input file in one */ + + +!File: density.h +#define DENSITY 3 /* see casestat.C for an explanation */ + + +!File: squeeze.h +#undef SQUEEZE 1 /* define on "small" machines */ + + +!File: strict3rd.h +#undef STRICT_3RD_ED 1 /* define on "small" machines, and if you want + a compiler that only implements "3rd edition" + Modula-2 + */ + + +!File: nocross.h +#undef NOCROSS 1 /* define when cross-compiler not needed */ + + +!File: nostrict.h +#undef NOSTRICT 1 /* define when STRICT warnings disabled + (yet another squeezing method) + */ + + diff --git a/lang/m2/comp/SmallPars b/lang/m2/comp/SmallPars new file mode 100644 index 000000000..62c23b0d4 --- /dev/null +++ b/lang/m2/comp/SmallPars @@ -0,0 +1,78 @@ +!File: errout.h +#define ERROUT STDERR /* file pointer for writing messages */ +#define MAXERR_LINE 100 /* maximum number of error messages given + on the same input line. */ + + +!File: idfsize.h +#define IDFSIZE 128 /* maximum significant length of an identifier */ + + +!File: numsize.h +#define NUMSIZE 256 /* maximum length of a numeric constant */ + + +!File: strsize.h +#define ISTRSIZE 32 /* minimum number of bytes allocated for + storing a string */ +#define RSTRSIZE 8 /* step size in enlarging the memory for + the storage of a string */ + + +!File: target_sizes.h +#define MAXSIZE 8 /* the maximum of the SZ_* constants */ + +/* target machine sizes */ +#define SZ_CHAR ((arith)1) +#define SZ_SHORT ((arith)2) +#define SZ_WORD ((arith)2) +#define SZ_INT ((arith)2) +#define SZ_LONG ((arith)4) +#define SZ_FLOAT ((arith)4) +#define SZ_DOUBLE ((arith)8) +#define SZ_POINTER ((arith)2) + +/* target machine alignment requirements */ +#define AL_CHAR 1 +#define AL_SHORT ((int)SZ_SHORT) +#define AL_WORD ((int)SZ_WORD) +#define AL_INT ((int)SZ_WORD) +#define AL_LONG ((int)SZ_WORD) +#define AL_FLOAT ((int)SZ_WORD) +#define AL_DOUBLE ((int)SZ_WORD) +#define AL_POINTER ((int)SZ_WORD) +#define AL_STRUCT ((int)SZ_WORD) + + +!File: debugcst.h +#undef DEBUG 1 /* perform various self-tests */ + +!File: inputtype.h +#undef INP_READ_IN_ONE 1 /* read input file in one */ + + +!File: density.h +#define DENSITY 3 /* see casestat.C for an explanation */ + + +!File: squeeze.h +#define SQUEEZE 1 /* define on "small" machines */ + + +!File: strict3rd.h +#define STRICT_3RD_ED 1 /* define on "small" machines, and if you want + a compiler that only implements "3rd edition" + Modula-2 + */ + + +!File: nocross.h +#define NOCROSS 1 /* define when cross-compiler not needed */ + + +!File: nostrict.h +#undef NOSTRICT 1 /* define when STRICT warnings disabled + (yet another squeezing method) + */ + +