1 /* $Id: top.h,v 1.5 1994/06/24 13:29:13 ceriel Exp $ */
3 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4 * See the copyright notice in the ACK home directory, in the file "Copyright".
6 /* Tunable constants; may be overruled by machine descriptor table */
9 #define OP_SEPARATOR ','
11 #ifndef LABEL_TERMINATOR
12 #define LABEL_TERMINATOR ':'
15 #define LABEL_STARTER 'I'
17 #ifndef OPC_TERMINATOR
18 #define OPC_TERMINATOR ' '
22 #define MAX_OPC_LEN 10
31 #define MAXLINELEN 100
38 typedef struct instruction *instr_p;
39 typedef struct pattern_descr *patdescr_p;
40 typedef struct instr_descr *idescr_p;
41 typedef struct templat *templ_p;
46 char line[MAXLINELEN+1];
48 char opc[MAX_OPC_LEN+1];
49 char op[MAXOP][MAXOPLEN+1];
60 char value[MAXVARLEN];
64 #define UNINSTANTIATED 0
65 #define INSTANTIATED 1
67 struct pattern_descr {
82 struct templat templates[MAXOP];
90 #define NIL (instr_p) 0
91 #define NULLSTRING (char *) 0
93 #define assert(x) if(!(x)) badassertion(__FILE__,__LINE__)