[project @ 2001-10-03 13:57:42 by simonmar]
authorsimonmar <unknown>
Wed, 3 Oct 2001 13:57:42 +0000 (13:57 +0000)
committersimonmar <unknown>
Wed, 3 Oct 2001 13:57:42 +0000 (13:57 +0000)
commitb4623557bb3c8bec7232e4e68a8be8cf28fbbda6
tree8591de15f983aebc70ee52b30190c67eadc9a932
parente205a0ce83c11de96656cf0b870eee3955b1c440
[project @ 2001-10-03 13:57:42 by simonmar]
Tidy up ghc/includes/Constants and related things.

Now all the constants that the compiler needs to know, such as header
size, update frame size, info table size and so on are generated
automatically into a header file, DeriviedConstants.h, by a small C
program in the same way as NativeDefs.h.  The C code in the RTS is
expected to use sizeof() directly (it already does).

Also tidied up the constants in MachDeps.h - all the constants
representing the sizes of various types are named SIZEOF_<foo>, to
match the constants defined in config.h.  PrelStorable.lhs now doesn't
contain any special knowledge about GHC's conventions as regards the
size of certain types, this is all in MachDeps.h.
13 files changed:
ghc/compiler/codeGen/CgStackery.lhs
ghc/compiler/main/Constants.lhs
ghc/includes/Block.h
ghc/includes/Closures.h
ghc/includes/Constants.h
ghc/includes/InfoTables.h
ghc/includes/MachDeps.h
ghc/includes/Makefile
ghc/includes/StgProf.h
ghc/includes/StgTypes.h
ghc/includes/mkDerivedConstants.c [new file with mode: 0644]
ghc/lib/std/PrelNum.lhs
ghc/lib/std/PrelStorable.lhs