diff options
author | Ian Lynagh <ian@well-typed.com> | 2012-09-14 21:25:46 +0100 |
---|---|---|
committer | Ian Lynagh <ian@well-typed.com> | 2012-09-14 21:25:46 +0100 |
commit | 6dd23e6549455431edcd1002d6e708e119aebb94 (patch) | |
tree | e89aac995f31f8ced41000018b53f049832da12d /includes/mkDerivedConstants.c | |
parent | 43e09ac7f7cb0d9523e74714c8f139c077216464 (diff) | |
download | haskell-6dd23e6549455431edcd1002d6e708e119aebb94.tar.gz |
Move some more constants into platformConstants
Diffstat (limited to 'includes/mkDerivedConstants.c')
-rw-r--r-- | includes/mkDerivedConstants.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/includes/mkDerivedConstants.c b/includes/mkDerivedConstants.c index a9485815d9..609c7aed31 100644 --- a/includes/mkDerivedConstants.c +++ b/includes/mkDerivedConstants.c @@ -673,6 +673,16 @@ main(int argc, char *argv[]) constantInt("mAX_Real_Double_REG", MAX_REAL_DOUBLE_REG); constantInt("mAX_Real_Long_REG", MAX_REAL_LONG_REG); + // This tells the native code generator the size of the spill + // area is has available. + constantInt("rESERVED_C_STACK_BYTES", RESERVED_C_STACK_BYTES); + // The amount of (Haskell) stack to leave free for saving registers when + // returning to the scheduler. + constantInt("rESERVED_STACK_WORDS", RESERVED_STACK_WORDS); + // Continuations that need more than this amount of stack should do their + // own stack check (see bug #1466). + constantInt("aP_STACK_SPLIM", AP_STACK_SPLIM); + switch (mode) { case Gen_Haskell_Type: printf(" } deriving (Read, Show)\n"); |