Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
cmucl
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
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
Carl Shapiro
cmucl
Commits
b11f0010
Commit
b11f0010
authored
35 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Added flags.
Added initial symbols. Exported above.
parent
62a4a1ca
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/mips/parms.lisp
+41
-4
41 additions, 4 deletions
compiler/mips/parms.lisp
with
41 additions
and
4 deletions
compiler/mips/parms.lisp
+
41
−
4
View file @
b11f0010
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/parms.lisp,v 1.
5
1990/02/1
4 21:58
:4
8
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/mips/parms.lisp,v 1.
6
1990/02/1
8 05:29
:4
1
wlott Exp $
;;;
;;; This file contains some parameterizations of various VM attributes for
;;; the MIPS. This file is separate from other stuff so that it can be compiled
...
...
@@ -37,8 +37,9 @@
complex-bit-vector-type
complex-vector-type
complex-array-type
code-header-type
function-header-type
return-pc-header-type
closure-header-type
symbol-header-type
character-type
SAP-type
unbound-marker-type
fixnum
*assembly-unit-length*
target-fasl-code-format
vm-version
))
unbound-marker-type
atomic-flag
interrupted-flag
fixnum
initial-symbols
initial-symbol-offset
*assembly-unit-length*
target-fasl-code-format
vm-version
))
(
eval-when
(
compile
load
eval
)
...
...
@@ -179,7 +180,43 @@
SAP
unbound-marker
)
;;; Handy routine for making fixnums.
;;;; Other non-type constants.
(
defenum
(
:suffix
-flag
)
atomic
interrupted
)
;;;; Initial symbols.
;;; These symbols are loaded into static space directly after NIL so that
;;; the system can compute their address by adding a constant amount to NIL.
;;;
(
defparameter
initial-symbols
'
(
t
lisp::lisp-environment-list
lisp::lisp-command-line-list
lisp::*initial-symbols*
lisp::*lisp-initialization-functions*
))
(
defun
initial-symbol-offset
(
symbol
)
"Return the byte offset of SYMBOL from NIL."
(
let
((
posn
(
position
symbol
initial-symbols
)))
(
unless
posn
(
error
"~S isn't one of the initial symbols."
symbol
))
(
macrolet
((
round-to-dual-word
(
x
)
`
(
logandc2
(
1+
,
x
)
1
)))
(
+
(
*
posn
(
round-to-dual-word
symbol-size
)
word-bytes
)
(
round-to-dual-word
(
1-
symbol-size
))
other-pointer-type
(
-
list-pointer-type
)))))
;;;; Handy routine for making fixnums:
(
defun
fixnum
(
num
)
"Make a fixnum out of NUM. (i.e. shift by two bits if it will fit.)"
...
...
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