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
40deb754
Commit
40deb754
authored
34 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Initial revision
parent
c1a1a7e8
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/generic/vm-macs.lisp
+69
-0
69 additions, 0 deletions
compiler/generic/vm-macs.lisp
with
69 additions
and
0 deletions
compiler/generic/vm-macs.lisp
0 → 100644
+
69
−
0
View file @
40deb754
;;; -*- Package: VM -*-
;;;
;;; **********************************************************************
;;; This code was written as part of the Spice Lisp project at
;;; Carnegie-Mellon University, and has been placed in the public domain.
;;; If you want to use this code or any part of Spice Lisp, please contact
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/generic/vm-macs.lisp,v 1.1 1991/02/11 17:31:32 ram Exp $
;;;
;;; This file contains some macros and constants that are object-format
;;; specific or are used for defining the object format.
;;;
;;; Written by William Lott and Christopher Hoover.
;;;
(
in-package
"VM"
)
(
defmacro
pad-data-block
(
words
)
`
(
logandc2
(
+
(
ash
,
words
vm:word-shift
)
lowtag-mask
)
lowtag-mask
))
(
defmacro
defenum
((
&key
(
prefix
""
)
(
suffix
""
)
(
start
0
)
(
step
1
))
&rest
identifiers
)
(
let
((
results
nil
)
(
index
0
)
(
start
(
eval
start
))
(
step
(
eval
step
)))
(
dolist
(
id
identifiers
)
(
when
id
(
multiple-value-bind
(
root
docs
)
(
if
(
consp
id
)
(
values
(
car
id
)
(
cdr
id
))
(
values
id
nil
))
(
push
`
(
defconstant
,
(
intern
(
concatenate
'simple-string
(
string
prefix
)
(
string
root
)
(
string
suffix
)))
,
(
+
start
(
*
step
index
))
,@
docs
)
results
)))
(
incf
index
))
`
(
eval-when
(
compile
load
eval
)
,@
(
nreverse
results
))))
;;;; Some general constant definitions:
;;; The number of bits per element in the assemblers code vector.
;;;
(
defparameter
*assembly-unit-length*
8
)
(
in-package
"C"
)
(
export
'
(
fasl-file-implementations
pmax-fasl-file-implementation
sparc-fasl-file-implementation
rt-fasl-file-implementation
))
;;; Constants for the different implementations. These are all defined in
;;; one place to make sure they are all unique.
(
defconstant
fasl-file-implementations
'
(
nil
"Pmax"
"Sparc"
"RT"
))
(
defconstant
pmax-fasl-file-implementation
1
)
(
defconstant
sparc-fasl-file-implementation
2
)
(
defconstant
rt-fasl-file-implementation
3
)
;;; The maximum number of SCs in any implementation.
(
defconstant
sc-number-limit
32
)
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