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
4d4c862f
Commit
4d4c862f
authored
20 years ago
by
cwang
Browse files
Options
Downloads
Patches
Plain Diff
Use a little bit of logic to figure out the word size of the native backend
instead of hard coding 32.
parent
eb8e0466
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/new-genesis.lisp
+9
-5
9 additions, 5 deletions
compiler/generic/new-genesis.lisp
with
9 additions
and
5 deletions
compiler/generic/new-genesis.lisp
+
9
−
5
View file @
4d4c862f
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
;;; Carnegie Mellon University, and has been placed in the public domain.
;;; Carnegie Mellon University, and has been placed in the public domain.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/generic/new-genesis.lisp,v 1.6
7
2004/0
5/24 23:04:10
cwang Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/generic/new-genesis.lisp,v 1.6
8
2004/0
6/18 22:50:02
cwang Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -415,10 +415,14 @@
...
@@ -415,10 +415,14 @@
(
des
(
allocate-vector-object
space
vm:byte-bits
(
1+
len
)
(
des
(
allocate-vector-object
space
vm:byte-bits
(
1+
len
)
vm:simple-string-type
)))
vm:simple-string-type
)))
(
write-indexed
des
vm:vector-length-slot
(
make-fixnum-descriptor
len
))
(
write-indexed
des
vm:vector-length-slot
(
make-fixnum-descriptor
len
))
(
copy-to-system-area
string
(
*
vm:vector-data-offset
32
)
; this should be the
(
copy-to-system-area
string
(
*
vm:vector-data-offset
;; word size of the old vm which may be different from the new vm
;; the word size of the native backend which
;; I'm assuming that the old vm is 32 bits!!!
;; may be different from the target backend
;; TODO: add word-bits slot to the backend structure
(
if
(
=
(
c:backend-fasl-file-implementation
c::*native-backend*
)
#.
c:amd64-fasl-file-implementation
)
64
32
))
(
descriptor-sap
des
)
(
descriptor-sap
des
)
(
*
vm:vector-data-offset
vm:word-bits
)
(
*
vm:vector-data-offset
vm:word-bits
)
(
*
(
1+
len
)
vm:byte-bits
))
(
*
(
1+
len
)
vm:byte-bits
))
...
...
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