var.c 850 B

123456789101112131415161718192021222324252627282930
  1. #ifndef NORCSID
  2. static char rcsid[] = "$Header$";
  3. #endif
  4. #include <stdio.h>
  5. #include "param.h"
  6. #include "types.h"
  7. #include "shc.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. line_p instrs,pseudos; /* pointers to chains */
  21. sym_p symhash[NSYMHASH]; /* array of pointers to chains */
  22. FILE *outfile;
  23. char template[] = "/usr/tmp/emoptXXXXXX";
  24. offset wordsize = 0;
  25. offset pointersize = 0;
  26. char *progname;
  27. proinf curpro; /* collected information about current pro */