home *** CD-ROM | disk | FTP | other *** search
/ APDL Public Domain 1 / APDL_PD1A.iso / program / language / icon / Source / h / Memsize < prev    next >
Encoding:
Text File  |  1990-07-19  |  2.6 KB  |  100 lines

  1. /*
  2.  * Memory sizing. 
  3.  */
  4.  
  5. #ifdef FixedRegions
  6. #undef IconAlloc
  7. #ifndef AlcMax
  8. #define AlcMax 25
  9. #endif                    /* AlcMax */
  10. #endif                    /* FixedRegions */
  11.  
  12. /*
  13.  * Maximum sized block that can be allocated (via malloc() or such).
  14.  */
  15.  
  16. #ifndef MaxBlock
  17. #define MaxBlock MaxUnsigned
  18. #endif                    /* MaxBlock */
  19.  
  20. /*
  21.  * What follows is default memory sizing. Implementations with special
  22.  *  requirements may specify these values in define.h.
  23.  */
  24.  
  25. #ifndef MaxStatSize
  26. #ifdef Coexpr
  27. #define MaxStatSize        20480    /* size of the static region in bytes*/
  28. #else                    /* Coexpr */
  29. #define MaxStatSize         1024    /* size of the static region in bytes */
  30. #endif                    /* Coexpr */
  31. #endif                    /* MaxStatSize */
  32.  
  33. #ifndef MaxStrSpace
  34. #define MaxStrSpace        65000    /* size of the string space in bytes */
  35. #endif                    /* MaxStrSpace */
  36.  
  37. #ifndef MaxAbrSize
  38. #define MaxAbrSize        65000    /* size of the block region in bytes */
  39. #endif                    /* MaxAbrSize */
  40.  
  41. #ifndef MStackSize
  42. #define MStackSize        10000    /* size of the main stack in words */
  43. #endif                    /* MStackSize */
  44.  
  45. #ifndef StackSize
  46. #define StackSize         2000    /* words in co-expression stack */
  47. #endif                    /* StackSize */
  48.  
  49. #ifndef QualLstSize
  50. #define QualLstSize         5000    /* size of qualifier pointer region */
  51. #endif                    /* QualLstSize */
  52.  
  53. #ifndef ActStkBlkEnts
  54. #ifdef Coexpr
  55. #define ActStkBlkEnts          100    /* number of entries in an astkblk */
  56. #else                    /* Coexpr */
  57. #define ActStkBlkEnts            1    /* number of entries in an astkblk */
  58. #endif                    /* Coexpr */
  59. #endif                    /* ActStkBlkEnts */
  60.  
  61. /*
  62.  * Minimum regions sizes (presently not used).
  63.  */
  64.  
  65. #ifndef MinStatSize
  66. #ifdef Coexpr
  67. #define MinStatSize        10240    /* size of the static region in bytes*/
  68. #else                    /* Coexpr */
  69. #define MinStatSize         1024    /* size of static region in bytes */
  70. #endif                    /* Coexpr */
  71. #endif                    /* MinStatSize */
  72.  
  73. #ifndef MinStrSpace
  74. #define MinStrSpace         5000    /* size of the string space in bytes */
  75. #endif                    /* MinStrSpace */
  76.  
  77. #ifndef MinAbrSize
  78. #define MinAbrSize         5000    /* size of the block region in bytes */
  79. #endif                    /* MinAbrSize */
  80.  
  81. #ifndef MinMStackSize
  82. #define MinMStackSize         2000    /* size of the main stack in words */
  83. #endif                    /* MinMStackSize */
  84.  
  85. #ifndef MinStackSize
  86. #define MinStackSize         1000    /* words in co-expression stack */
  87. #endif                    /* MinStackSize */
  88.  
  89. #ifndef MinQualLstSize
  90. #define MinQualLstSize          500    /* size of qualifier pointer region */
  91. #endif                    /* MinQualLstSize */
  92.  
  93. #ifndef GranSize
  94. #define GranSize                64    /* storage allocation granule size */
  95. #endif                    /* GranSize */
  96.  
  97. #ifndef Sqlinc
  98. #define Sqlinc        128*sizeof(dptr *)     /* qualifier pointer list increment */
  99. #endif                    /* Sqlinc */
  100.