var.c 912 B

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