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
a6a5ef54
Commit
a6a5ef54
authored
31 years ago
by
ram
Browse files
Options
Downloads
Patches
Plain Diff
Add (byte-compiling) function.
parent
afc1e474
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/main.lisp
+18
-5
18 additions, 5 deletions
compiler/main.lisp
with
18 additions
and
5 deletions
compiler/main.lisp
+
18
−
5
View file @
a6a5ef54
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;; Scott Fahlman or slisp-group@cs.cmu.edu.
;;;
;;;
(
ext:file-comment
(
ext:file-comment
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/main.lisp,v 1.8
2
1993/05/1
1
1
4:05:27
ram Exp $"
)
"$Header: /Volumes/share2/src/cmucl/cvs2git/cvsroot/src/compiler/main.lisp,v 1.8
3
1993/05/1
2
1
1:22:48
ram Exp $"
)
;;;
;;;
;;; **********************************************************************
;;; **********************************************************************
;;;
;;;
...
@@ -60,10 +60,12 @@
...
@@ -60,10 +60,12 @@
(
defvar
*byte-compile*
:maybe
)
(
defvar
*byte-compile*
:maybe
)
;;; Bound by COMPILE-COMPONENT to T when byte-compiling, and NIL when
;;; Bound by COMPILE-COMPONENT to T when byte-compiling, and NIL when
;;; native compiling.
;;; native compiling. During IR1 conversion this can also be :MAYBE, in which
;;; case we must look at the policy, see (byte-compiling).
;;;
;;;
(
defvar
*byte-compiling*
)
(
defvar
*byte-compiling*
:maybe
)
(
declaim
(
type
(
member
t
nil
:maybe
)
*byte-compile*
*byte-compiling*
*byte-compile-default*
))
(
defvar
compiler-version
"1.0"
)
(
defvar
compiler-version
"1.0"
)
(
pushnew
:python
*features*
)
(
pushnew
:python
*features*
)
...
@@ -344,11 +346,22 @@
...
@@ -344,11 +346,22 @@
(
undefined-value
))
(
undefined-value
))
;;; BYTE-COMPILING -- Interface
;;;
;;; Return our best guess for whether we will byte compile code currently
;;; being IR1 converted. Only a guess because the decision is made on a
;;; per-component basis.
;;;
(
defun
byte-compiling
()
(
if
(
eq
*byte-compiling*
:maybe
)
(
policy
nil
(
zerop
speed
)
(
<=
debug
1
))
*byte-compiling*
))
;;; COMPILE-COMPONENT -- internal.
;;; COMPILE-COMPONENT -- internal.
;;;
;;;
(
defun
compile-component
(
component
)
(
defun
compile-component
(
component
)
(
let*
((
*compile-component*
component
)
(
let*
((
*compile-component*
component
)
(
*byte-compiling*
(
ecase
*byte-compile*
(
ecase
*byte-compile*
((
t
)
t
)
((
t
)
t
)
((
nil
)
nil
)
((
nil
)
nil
)
...
...
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