X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fincludes%2FConstants.h;h=9792a0efd30b2bae3f476a66a07929307eb3ed70;hb=a53814649564f469c4e7a68f49a48da5a86d7893;hp=dc6d3bdbe9457d5cadf1c86f4dffffc901c9813a;hpb=4070b105490709e2fbc40ef926853fc93595b7a6;p=ghc-hetmet.git diff --git a/ghc/includes/Constants.h b/ghc/includes/Constants.h index dc6d3bd..9792a0e 100644 --- a/ghc/includes/Constants.h +++ b/ghc/includes/Constants.h @@ -1,5 +1,5 @@ /* ---------------------------------------------------------------------------- - * $Id: Constants.h,v 1.11 2000/02/28 12:02:32 sewardj Exp $ + * $Id: Constants.h,v 1.14 2000/08/07 23:37:23 qrczak Exp $ * * (c) The GHC Team, 1998-1999 * @@ -158,15 +158,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 @@ -190,13 +200,6 @@ #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. -------------------------------------------------------------------------- */