2019-05-10 17:17:40 +00:00
|
|
|
/*
|
|
|
|
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
|
|
|
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
|
|
|
*
|
|
|
|
* Author: Hans van Staveren
|
|
|
|
*/
|
1984-05-17 13:42:36 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "param.h"
|
|
|
|
#include "types.h"
|
1990-09-04 16:42:43 +00:00
|
|
|
#include "tes.h"
|
1984-05-17 13:42:36 +00:00
|
|
|
#include "lookup.h"
|
|
|
|
#include "proinf.h"
|
|
|
|
|
2019-05-10 17:17:40 +00:00
|
|
|
|
1984-05-17 13:42:36 +00:00
|
|
|
|
|
|
|
unsigned linecount = 0; /* "line"number for errormessages */
|
|
|
|
int prodepth = 0; /* Level of nesting */
|
|
|
|
bool Lflag = 0; /* make library module */
|
|
|
|
bool nflag = 0; /* do not optimize */
|
1991-11-20 15:53:11 +00:00
|
|
|
int repl_muls = 0; /* max # of shifts/adds for replacing muls */
|
|
|
|
bool repl_longmuls = 0; /* replacing longmuls as well? */
|
1984-05-17 13:42:36 +00:00
|
|
|
line_p instrs,pseudos; /* pointers to chains */
|
|
|
|
sym_p symhash[NSYMHASH]; /* array of pointers to chains */
|
|
|
|
FILE *outfile;
|
2022-07-18 19:42:52 +00:00
|
|
|
char *tempname;
|
1984-05-17 13:42:36 +00:00
|
|
|
offset wordsize = 0;
|
|
|
|
offset pointersize = 0;
|
|
|
|
char *progname;
|
|
|
|
proinf curpro; /* collected information about current pro */
|