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
8e5356f6
Commit
8e5356f6
authored
34 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Allow multiple SCs to be speced for args and results. The wired temp uses
the first sc listed when there are more than one.
parent
94699955
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
assembly/assemfile.lisp
+12
-6
12 additions, 6 deletions
assembly/assemfile.lisp
with
12 additions
and
6 deletions
assembly/assemfile.lisp
+
12
−
6
View file @
8e5356f6
...
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman (FAHLMAN@CMUC).
;;; **********************************************************************
;;;
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/assemfile.lisp,v 1.1
1
1990/0
5/24
1
3
:2
4
:0
6
wlott Exp $
;;; $Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/assembly/assemfile.lisp,v 1.1
2
1990/0
6/16
1
7
:2
1
:0
4
wlott Exp $
;;;
;;; This file contains the extra code necessary to feed an entire file of
;;; assembly code to the assembler.
...
...
@@ -70,21 +70,25 @@
(
kind
:temp
:type
(
member
:arg
:temp
:result
))
(
name
nil
:type
symbol
)
(
temp
nil
:type
symbol
)
(
sc
nil
:type
symbol
)
(
sc
s
nil
:type
(
or
list
symbol
)
)
(
offset
0
:type
fixnum
))
(
defun
%print-reg-spec
(
spec
stream
depth
)
(
declare
(
ignore
depth
))
(
format
stream
"#<reg ~S ~S sc=~S offset=~S>"
"#<reg ~S ~S sc
s
=~S offset=~S>"
(
reg-spec-kind
spec
)
(
reg-spec-name
spec
)
(
reg-spec-sc
spec
)
(
reg-spec-sc
s
spec
)
(
reg-spec-offset
spec
)))
(
defun
reg-spec-sc
(
spec
)
(
if
(
atom
(
reg-spec-scs
spec
))
(
reg-spec-scs
spec
)
(
car
(
reg-spec-scs
spec
))))
(
defun
parse-reg-spec
(
kind
name
sc
offset
)
(
let
((
reg
(
make-reg-spec
:kind
kind
:name
name
:sc
sc
:offset
offset
)))
(
let
((
reg
(
make-reg-spec
:kind
kind
:name
name
:sc
s
sc
:offset
offset
)))
(
ecase
kind
(
:temp
)
((
:arg
:res
)
...
...
@@ -123,7 +127,9 @@
(
defun
arg-or-res-spec
(
reg
)
`
(
,
(
reg-spec-name
reg
)
:scs
(
,
(
reg-spec-sc
reg
))
:scs
,
(
if
(
atom
(
reg-spec-scs
reg
))
(
list
(
reg-spec-scs
reg
))
(
reg-spec-scs
reg
))
,@
(
unless
(
eq
(
reg-spec-kind
reg
)
:res
)
`
(
:target
,
(
reg-spec-temp
reg
)))))
...
...
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