param.h 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  3. * See the copyright notice in the ACK home directory, in the file "Copyright".
  4. */
  5. /* $Id$ */
  6. /*
  7. * Miscellaneous sizes, tunable
  8. */
  9. #include <local.h>
  10. #if BIGMACHINE
  11. #define BORS(x,y) x
  12. #else
  13. #define BORS(x,y) y
  14. #endif
  15. #define MAXREGS BORS(40,30)
  16. #define MAXPROPS BORS(30,20)
  17. #define MAXTOKENS BORS(100,60)
  18. #define MAXATT 6
  19. #define MAXSETS BORS(200,100)
  20. #define MAXINSTR BORS(200,125)
  21. #define MAXSTRINGS BORS(300,200)
  22. #define MAXNODES BORS(1200,350)
  23. #define EMPATMAX BORS(20,10)
  24. #define MAXPATTERNS BORS(40,30)
  25. #define MAXALLREG 5
  26. #define MAXINSTANCES BORS(500,300)
  27. #define MAXMOVES BORS(40,20)
  28. #define MAXTESTS 10
  29. #define MAXSTACKS BORS(30,20)
  30. #define MAXCOERCS BORS(50,30)
  31. #define MAXSPLCOERC BORS(20,10)
  32. #define MAXSPLIT 3
  33. #define MAXPATBYTES BORS(14000,7000)
  34. #define MAXREGVAR 10
  35. #define MAXSOURCELINES 7000
  36. #define MAXPROCARG 10
  37. /* end of tunable constants */
  38. #define TOKPATMAX 7
  39. #define SZOFSET(n) (((n)+15)/16)
  40. #define SETSIZE SZOFSET(MAXREGS+MAXTOKENS)
  41. #define NEXT(n,max,string) (n<max? n++ : tabovf(string))
  42. #define NEW(x,y) x=(y*)myalloc(sizeof(*(x)))
  43. #include <em_spec.h>
  44. #define op_lab (sp_lmnem + 1)