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
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
alexbiehl-gc
GHC
Commits
b72390e9
Commit
b72390e9
authored
24 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
[project @ 2000-05-15 14:44:42 by simonmar]
add CurrentTSO, CurrentNursery, bdescr->start and bdescr->free offsets.
parent
3a5b829e
Loading
Loading
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
ghc/includes/mkNativeHdr.c
+14
-1
14 additions, 1 deletion
ghc/includes/mkNativeHdr.c
with
14 additions
and
1 deletion
ghc/includes/mkNativeHdr.c
+
14
−
1
View file @
b72390e9
/* --------------------------------------------------------------------------
* $Id: mkNativeHdr.c,v 1.
3
2000/0
1/25 18:09:52 sewardj
Exp $
* $Id: mkNativeHdr.c,v 1.
4
2000/0
5/15 14:44:42 simonmar
Exp $
*
* (c) The GHC Team, 1992-1998
*
...
...
@@ -33,13 +33,19 @@
#define OFFSET_SpLim OFFSET(RegTable, RegTable.rSpLim)
#define OFFSET_Hp OFFSET(RegTable, RegTable.rHp)
#define OFFSET_HpLim OFFSET(RegTable, RegTable.rHpLim)
#define OFFSET_CurrentTSO OFFSET(RegTable, RegTable.rCurrentTSO)
#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 BDESCR_START OFFSET(bd, bd.start)
#define BDESCR_FREE OFFSET(bd, bd.free)
StgRegTable
RegTable
;
StgTSO
tso
;
bdescr
bd
;
int
main
()
...
...
@@ -72,6 +78,8 @@ main()
printf
(
"#define OFFSET_SpLim %d
\n
"
,
OFFSET_SpLim
);
printf
(
"#define OFFSET_Hp %d
\n
"
,
OFFSET_Hp
);
printf
(
"#define OFFSET_HpLim %d
\n
"
,
OFFSET_HpLim
);
printf
(
"#define OFFSET_CurrentTSO %d
\n
"
,
OFFSET_CurrentTSO
);
printf
(
"#define OFFSET_CurrentNursery %d
\n
"
,
OFFSET_CurrentNursery
);
printf
(
"
\n
-- Storage Manager offsets for the Native Code Generator
\n
"
);
...
...
@@ -81,6 +89,11 @@ main()
printf
(
"#define TSO_SU %d
\n
"
,
TSO_SU
);
printf
(
"#define TSO_SPLIM %d
\n
"
,
TSO_SPLIM
);
printf
(
"
\n
-- Block descriptor offsets for the Native Code Generator
\n
"
);
printf
(
"#define BDESCR_START %d
\n
"
,
BDESCR_START
);
printf
(
"#define BDESCR_FREE %d
\n
"
,
BDESCR_FREE
);
printf
(
"
\n
-- FILE size for the Native Code Generator
\n
"
);
printf
(
"#define FILE_SIZE %d
\n
"
,
sizeof
(
*
stdin
));
...
...
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