Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Gesh
GHC
Commits
8f56e4b3
Commit
8f56e4b3
authored
24 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-08-17 14:30:26 by simonmar]
Complete the removal of tso->splim (these are the NCG bits).
parent
a6f40a55
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
ghc/compiler/main/Constants.lhs
+8
-0
8 additions, 0 deletions
ghc/compiler/main/Constants.lhs
ghc/compiler/nativeGen/StixPrim.lhs
+5
-7
5 additions, 7 deletions
ghc/compiler/nativeGen/StixPrim.lhs
ghc/includes/mkNativeHdr.c
+3
-3
3 additions, 3 deletions
ghc/includes/mkNativeHdr.c
with
16 additions
and
10 deletions
ghc/compiler/main/Constants.lhs
+
8
−
0
View file @
8f56e4b3
...
...
@@ -24,6 +24,7 @@ module Constants (
aRR_WORDS_HDR_SIZE,
aRR_PTRS_HDR_SIZE,
rESERVED_C_STACK_BYTES,
rESERVED_STACK_WORDS,
sTD_ITBL_SIZE,
pROF_ITBL_SIZE,
...
...
@@ -231,6 +232,13 @@ area is has available.
rESERVED_C_STACK_BYTES = (RESERVED_C_STACK_BYTES :: Int)
\end{code}
The amount of (Haskell) stack to leave free for saving registers when
returning to the scheduler.
\begin{code}
rESERVED_STACK_WORDS = (RESERVED_STACK_WORDS :: Int)
\end{code}
Size of a word, in bytes
\begin{code}
...
...
This diff is collapsed.
Click to expand it.
ghc/compiler/nativeGen/StixPrim.lhs
+
5
−
7
View file @
8f56e4b3
...
...
@@ -18,7 +18,8 @@ import Literal ( Literal(..), word2IntLit )
import PrimOp ( PrimOp(..), CCall(..), CCallTarget(..) )
import PrimRep ( PrimRep(..), isFloatingRep )
import UniqSupply ( returnUs, thenUs, getUniqueUs, UniqSM )
import Constants ( mIN_INTLIKE, mIN_CHARLIKE, uF_UPDATEE, bLOCK_SIZE )
import Constants ( mIN_INTLIKE, mIN_CHARLIKE, uF_UPDATEE, bLOCK_SIZE,
rESERVED_STACK_WORDS )
import CLabel ( mkIntlikeClosureLabel, mkCharlikeClosureLabel,
mkMAP_FROZEN_infoLabel, mkForeignLabel )
import Outputable
...
...
@@ -570,10 +571,6 @@ save_thread_state
(StInd PtrRep (StPrim IntAddOp
[tso, StInt (toInteger (TSO_SU*BYTES_PER_WORD))]))
stgSu :
StAssign PtrRep
(StInd PtrRep (StPrim IntAddOp
[tso, StInt (toInteger (TSO_SPLIM*BYTES_PER_WORD))]))
stgSpLim :
StAssign PtrRep
(StInd PtrRep (StPrim IntAddOp
[stgCurrentNursery,
...
...
@@ -594,8 +591,9 @@ load_thread_state
(StInd PtrRep (StPrim IntAddOp
[tso, StInt (toInteger (TSO_SU*BYTES_PER_WORD))])) :
StAssign PtrRep stgSpLim
(StInd PtrRep (StPrim IntAddOp
[tso, StInt (toInteger (TSO_SPLIM*BYTES_PER_WORD))])) :
(StPrim IntAddOp [tso,
StInt (toInteger ((TSO_STACK + rESERVED_STACK_WORDS)
*BYTES_PER_WORD))]) :
StAssign PtrRep stgHp
(StPrim IntSubOp [
StInd PtrRep (StPrim IntAddOp
...
...
This diff is collapsed.
Click to expand it.
ghc/includes/mkNativeHdr.c
+
3
−
3
View file @
8f56e4b3
/* --------------------------------------------------------------------------
* $Id: mkNativeHdr.c,v 1.
4
2000/0
5
/1
5
14:
44:42
simonmar Exp $
* $Id: mkNativeHdr.c,v 1.
5
2000/0
8
/1
7
14:
30:26
simonmar Exp $
*
* (c) The GHC Team, 1992-1998
*
...
...
@@ -37,8 +37,8 @@
#define OFFSET_CurrentNursery OFFSET(RegTable, RegTable.rCurrentNursery)
#define TSO_SP OFFSET(tso, tso.sp)
#define TSO_SPLIM OFFSET(tso, tso.splim)
#define TSO_SU OFFSET(tso, tso.su)
#define TSO_STACK OFFSET(tso, tso.stack)
#define BDESCR_START OFFSET(bd, bd.start)
#define BDESCR_FREE OFFSET(bd, bd.free)
...
...
@@ -87,7 +87,7 @@ main()
printf
(
"#define TSO_SP %d
\n
"
,
TSO_SP
);
printf
(
"#define TSO_SU %d
\n
"
,
TSO_SU
);
printf
(
"#define TSO_S
PLIM
%d
\n
"
,
TSO_S
PLIM
);
printf
(
"#define TSO_S
TACK
%d
\n
"
,
TSO_S
TACK
);
printf
(
"
\n
-- Block descriptor offsets for the Native Code Generator
\n
"
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment