X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FConstants.h;h=5e02a98e864afc87bca7dc0592bb92e10582ab51;hb=fb7a723bfd7650a705cb226e07c5b08b7a8e9279;hp=39831969370bf51d306666a572e7096f2148abdc;hpb=1b28d4e1f43185ad8c8e7407c66413e1b358402b;p=ghc-hetmet.git diff --git a/ghc/includes/Constants.h b/ghc/includes/Constants.h index 3983196..5e02a98 100644 --- a/ghc/includes/Constants.h +++ b/ghc/includes/Constants.h @@ -1,5 +1,5 @@ /* ---------------------------------------------------------------------------- - * $Id: Constants.h,v 1.8 2000/01/13 14:34:00 hwloidl Exp $ + * $Id: Constants.h,v 1.17 2001/08/01 08:20:33 simonmar Exp $ * * (c) The GHC Team, 1998-1999 * @@ -27,7 +27,8 @@ #define PAR_HDR_SIZE 0 #define TICKY_HDR_SIZE 0 -#define ARR_HDR_SIZE 1 +#define ARR_WORDS_HDR_SIZE 1 +#define ARR_PTRS_HDR_SIZE 2 /* ----------------------------------------------------------------------------- Info Table sizes @@ -114,7 +115,6 @@ #define UF_RET 0 #define UF_SU 1 #define UF_UPDATEE 2 -#define UF_CCS 3 /* ----------------------------------------------------------------------------- SEQ frame size @@ -157,15 +157,25 @@ #define INT64_SIZE 2 #endif + +/*---- The size of StgWord, in bytes. */ +#define WORD_SIZE SIZEOF_VOID_P + /*---- Maximum number of constructors in a data type for direct-returns. */ #define MAX_VECTORED_RTN 8 -/*---- Range of built-in table of static small int-like closures. */ +/*---- Range of built-in table of static small int-like and char-like closures. */ -#define MAX_INTLIKE (16) +#define MAX_INTLIKE 16 #define MIN_INTLIKE (-16) +#define MAX_CHARLIKE 255 +#define MIN_CHARLIKE 0 + +/* You can change these constants (I hope) but be sure to modify + rts/StgMiscClosures.hs accordingly. */ + /*---- Minimum number of words left in heap after GC to carry on */ #define HEAP_HWM_WORDS 1024 @@ -189,18 +199,11 @@ #define INFO_FIRST_TAG 0 /* ----------------------------------------------------------------------------- - Context switch timing constants. - -------------------------------------------------------------------------- */ - -#define CS_MAX_FREQUENCY 100 /* context switches per second */ -#define CS_MIN_MILLISECS (1000/CS_MAX_FREQUENCY)/* milliseconds per slice */ - -/* ----------------------------------------------------------------------------- How much C stack to reserve for local temporaries when in the STG world. Used in StgRun.S and StgCRun.c. -------------------------------------------------------------------------- */ -#define RESERVED_C_STACK_BYTES (512 * SIZEOF_LONG) +#define RESERVED_C_STACK_BYTES (2048 * SIZEOF_LONG) /* ----------------------------------------------------------------------------- How much Haskell stack space to reserve for the saving of registers