Pristine Ack-5.5
[Ack-5.5.git] / util / opt / var.c
1 #ifndef NORCSID
2 static char rcsid[] = "$Id: var.c,v 2.6 1994/06/24 10:41:18 ceriel Exp $";
3 #endif
4
5 #include <stdio.h>
6 #include "param.h"
7 #include "types.h"
8 #include "tes.h"
9 #include "lookup.h"
10 #include "proinf.h"
11
12 /*
13  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
14  * See the copyright notice in the ACK home directory, in the file "Copyright".
15  *
16  * Author: Hans van Staveren
17  */
18
19 unsigned linecount = 0;         /* "line"number for errormessages */
20 int     prodepth  = 0;          /* Level of nesting */
21 bool    Lflag     = 0;          /* make library module */
22 bool    nflag     = 0;          /* do not optimize */
23 int     repl_muls = 0;          /* max # of shifts/adds for replacing muls */
24 bool    repl_longmuls = 0;      /* replacing longmuls as well? */
25 line_p  instrs,pseudos;         /* pointers to chains */
26 sym_p   symhash[NSYMHASH];      /* array of pointers to chains */
27 FILE    *outfile;
28 char    template[] = "/usr/tmp/emoptXXXXXX";
29 offset  wordsize = 0;
30 offset  pointersize = 0;
31 char    *progname;
32 proinf  curpro;                 /* collected information about current pro */