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
091c9bdc
Commit
091c9bdc
authored
35 years ago
by
wlott
Browse files
Options
Downloads
Patches
Plain Diff
Initial revision
parent
550030c7
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
compiler/mips/print.lisp
+39
-0
39 additions, 0 deletions
compiler/mips/print.lisp
with
39 additions
and
0 deletions
compiler/mips/print.lisp
0 → 100644
+
39
−
0
View file @
091c9bdc
;;; -*- Package: C -*-
;;;
;;; **********************************************************************
;;; 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/mips/print.lisp,v 1.1 1990/03/18 23:45:13 wlott Exp $
;;;
;;; This file contains temporary printing utilities and similar noise.
;;;
;;; Written by William Lott.
(
in-package
"C"
)
(
define-vop
(
print
)
(
:args
(
object
:scs
(
descriptor-reg
)))
(
:results
(
result
:scs
(
descriptor-reg
)))
(
:save-p
t
)
(
:temporary
(
:sc
any-reg
:offset
2
)
v0
)
(
:temporary
(
:sc
any-reg
:offset
lra-offset
)
lra
)
(
:temporary
(
:sc
any-reg
:offset
code-offset
)
code
)
(
:temporary
(
:scs
(
any-reg
)
:type
fixnum
)
temp
)
(
:generator
0
(
let
((
lra-label
(
gen-label
)))
(
inst
addiu
nsp-tn
nsp-tn
-16
)
(
storew
object
nsp-tn
0
)
(
inst
load-foreign-address
v0
"print"
)
(
inst
load-foreign-address
temp
"call_into_c"
)
(
inst
jr
temp
)
(
inst
compute-lra-from-code
lra
code
lra-label
)
(
align
vm:lowtag-bits
)
(
emit-label
lra-label
)
(
inst
lra-header-word
)
(
inst
addiu
nsp-tn
nsp-tn
16
)
(
move
result
v0
))))
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