diff options
author | simonmar <unknown> | 2000-07-26 13:29:03 +0000 |
---|---|---|
committer | simonmar <unknown> | 2000-07-26 13:29:03 +0000 |
commit | fc5cd5a56a47cfed705e0358193e5245a7805b83 (patch) | |
tree | f54e8e800698e251c261fc4adc45272aba6b62d7 | |
parent | 1773a3e1dd9f724eee5b9678d14f50329707dbcb (diff) | |
download | haskell-fc5cd5a56a47cfed705e0358193e5245a7805b83.tar.gz |
[project @ 2000-07-26 13:29:03 by simonmar]
- add wORD_SIZE (size of an StgWord in bytes)
- add bLOCK_SIZE_W (size of a storage manager block in words)
-rw-r--r-- | ghc/compiler/main/Constants.lhs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ghc/compiler/main/Constants.lhs b/ghc/compiler/main/Constants.lhs index 771b5132c8..97d6a3a12a 100644 --- a/ghc/compiler/main/Constants.lhs +++ b/ghc/compiler/main/Constants.lhs @@ -64,7 +64,10 @@ module Constants ( iNT64_SIZE, wORD64_SIZE, + wORD_SIZE, + bLOCK_SIZE, + bLOCK_SIZE_W, interfaceFileFormatVersion @@ -223,8 +226,15 @@ area is has available. rESERVED_C_STACK_BYTES = (RESERVED_C_STACK_BYTES :: Int) \end{code} +Size of a word, in bytes + +\begin{code} +wORD_SIZE = (WORD_SIZE :: Int) +\end{code} + Size of a storage manager block (in bytes). \begin{code} bLOCK_SIZE = (BLOCK_SIZE :: Int) +bLOCK_SIZE_W = (bLOCK_SIZE `div` wORD_SIZE :: Int) \end{code} |