var.c 966 B

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