Переглянути джерело

two versions of the parameters file: small and large

ceriel 36 роки тому
батько
коміт
8627320960
3 змінених файлів з 158 додано та 1 видалено
  1. 2 1
      lang/m2/comp/.distr
  2. 78 0
      lang/m2/comp/BigPars
  3. 78 0
      lang/m2/comp/SmallPars

+ 2 - 1
lang/m2/comp/.distr

@@ -2,7 +2,8 @@ LLlex.c
 LLlex.h
 LLmessage.c
 Makefile
-Parameters
+BigPars
+SmallPars
 Resolve
 SYSTEM.h
 Version.c

+ 78 - 0
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)
+				*/
+
+

+ 78 - 0
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)
+				*/
+
+