Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
a5fb24aa
Commit
a5fb24aa
authored
Apr 28, 2003
by
simonmar
Browse files
[project @ 2003-04-28 10:02:15 by simonmar]
Add a compile-time sanity check that RESERVED_STACK_WORDS is right.
parent
df95d4f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/includes/StgMacros.h
View file @
a5fb24aa
/* -----------------------------------------------------------------------------
* $Id: StgMacros.h,v 1.5
2
2003/04/28
09:57
:1
2
simonmar Exp $
* $Id: StgMacros.h,v 1.5
3
2003/04/28
10:02
:1
5
simonmar Exp $
*
* (c) The GHC Team, 1998-1999
*
...
...
@@ -259,6 +259,13 @@ typedef StgWord StgWordArray[];
#define RET_DYN_NONPTR_REGS_SIZE 10
#define ALL_NON_PTRS 0xff
// Sanity check that RESERVED_STACK_WORDS is reasonable. We can't
// just derive RESERVED_STACK_WORDS because it's used in Haskell code
// too.
#if RESERVED_STACK_WORDS != (3 + RET_DYN_BITMAP_SIZE + RET_DYN_NONPTR_REGS_SIZE)
#error RESERVED_STACK_WORDS may be wrong!
#endif
#define LIVENESS_MASK(ptr_regs) (ALL_NON_PTRS ^ (ptr_regs))
// We can have up to 255 pointers and 255 nonpointers in the stack
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment