/[cmucl]/src/tools/hemcom.lisp
ViewVC logotype

Contents of /src/tools/hemcom.lisp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations)
Wed Nov 2 17:38:46 1994 UTC (19 years, 5 months ago) by ram
Branch: MAIN
Changes since 1.5: +2 -1 lines
Purify after loading pcl and clx.
1 ;;;
2 ;;; This file compiles all of Hemlock.
3 ;;;
4
5 #+bootstrap
6 (progn
7 (when (ext:get-command-line-switch "slave")
8 (error "Cannot compile Hemlock in a slave due to its clobbering needed
9 typescript routines by renaming the package."))
10
11 ;;; Blast the old packages in case they are around. We do this solely to
12 ;;; prove Hemlock can compile cleanly without its having to exist already.
13 ;;;
14 (copy-packages '("ED" "HI")))
15
16
17 ;;; Stuff to set up the packages Hemlock uses.
18 ;;;
19 (unless (find-package "HEMLOCK-INTERNALS")
20 (make-package "HEMLOCK-INTERNALS"
21 :nicknames '("HI")
22 :use '("LISP" "EXTENSIONS" "SYSTEM")))
23
24 (unless (find-package "HEMLOCK")
25 (make-package "HEMLOCK"
26 :nicknames '("ED")
27 :use '("LISP" "HEMLOCK-INTERNALS" "EXTENSIONS" "SYSTEM")))
28 ;;;
29 (export 'c::compile-from-stream (find-package "C"))
30
31
32 (in-package "USER")
33
34 (defvar *byte-compile* #+small t #-small :maybe)
35
36 (pushnew :command-bits *features*)
37 (pushnew :buffered-lines *features*)
38
39 #-clx
40 ;;; If CLX has not been loaded, but has been compiled, then load it.
41 ;;;
42 (when (probe-file (make-pathname :defaults "target:clx/clx-library"
43 :type (c:backend-fasl-file-type c:*backend*)))
44 #+(and (not pcl) (not no-pcl-clx))
45 (load "target:pcl/pclload")
46 (load "target:clx/clx-library")
47 (ext:purify))
48
49 (with-compiler-log-file
50 ("target:compile-hemlock.log"
51 :optimize
52 '(optimize (debug #-small 2 #+small .5)
53 (speed 2) (inhibit-warnings 2)
54 (safety #-small 1 #+small 0))
55 :optimize-interface
56 '(optimize-interface (debug .5))
57 :context-declarations
58 '(((:or :external (:match "$%SET-"))
59 (declare (optimize (safety 2))
60 (optimize-interface (debug 1))))
61 (:macro (declare (optimize (speed 0))))))
62
63 (comf "target:code/globals")
64 (comf "target:code/struct")
65 (comf "target:hemlock/charmacs")
66 (comf "target:hemlock/key-event" :load t)
67 (comf "target:hemlock/struct")
68 ;(comf "target:hemlock/struct-ed")
69 (comf "target:hemlock/rompsite")
70 ;;;
71 ;;; This is necessary since all the #k uses in Hemlock will expand into
72 ;;; EXT:MAKE-KEY-EVENT calls with keysyms and bits from the compiling Lisp, not
73 ;;; for the Lisp new code will run in. This destroys the compiling Lisp with
74 ;;; respect to running code with #k's compiled for it, but it causes the
75 ;;; compilation to see new keysyms, modifiers, and CLX modifier maps correctly
76 ;;; for the new system.
77 ;;;
78 (ext::re-initialize-key-events)
79 (comf "target:hemlock/keysym-defs")
80 (comf "target:hemlock/input")
81 (comf "target:hemlock/macros" :byte-compile t)
82 (comf "target:hemlock/line")
83 (comf "target:hemlock/ring")
84 (comf "target:hemlock/table")
85 (comf "target:hemlock/htext1")
86 (comf "target:hemlock/htext2")
87 (comf "target:hemlock/htext3")
88 (comf "target:hemlock/htext4")
89 (comf "target:hemlock/search1")
90 (comf "target:hemlock/search2")
91 (comf "target:hemlock/linimage")
92 (comf "target:hemlock/cursor")
93 (comf "target:hemlock/syntax")
94 (comf "target:hemlock/winimage")
95 #+clx (comf "target:hemlock/hunk-draw")
96 ;(comf "target:hemlock/bit-stream")
97 (comf "target:hemlock/termcap")
98 (comf "target:hemlock/display")
99 #+clx (comf "target:hemlock/bit-display")
100 (comf "target:hemlock/tty-disp-rt")
101 (with-compilation-unit (:optimize '(optimize (safety 2) (debug 3)))
102 (comf "target:hemlock/tty-display")) ; Buggy...
103 ;(comf "target:hemlock/tty-stream")
104 (comf "target:hemlock/pop-up-stream")
105 (comf "target:hemlock/screen")
106 #+clx (comf "target:hemlock/bit-screen")
107 (comf "target:hemlock/tty-screen")
108 (comf "target:hemlock/window")
109 (comf "target:hemlock/font")
110 (comf "target:hemlock/interp")
111 (comf "target:hemlock/vars")
112 (comf "target:hemlock/buffer")
113 (comf "target:hemlock/files")
114 (comf "target:hemlock/streams")
115 (comf "target:hemlock/echo" :byte-compile t)
116 (comf "target:hemlock/main" :byte-compile t)
117 (comf "target:hemlock/echocoms" :byte-compile t)
118 (comf "target:hemlock/defsyn")
119
120 (comf "target:hemlock/ts-buf")
121 (comf "target:hemlock/ts-stream")
122
123 (with-compilation-unit
124 (:optimize
125 '(optimize (safety 2) (speed 0))
126 :context-declarations
127 '(((:match "-COMMAND$")
128 (declare (optimize (safety #+small 0 #-small 1))
129 (optimize-interface (safety 2))))))
130
131 (comf "target:hemlock/command" :byte-compile t)
132 (comf "target:hemlock/morecoms" :byte-compile t)
133 (comf "target:hemlock/undo" :byte-compile t)
134 (comf "target:hemlock/killcoms" :byte-compile t)
135 (comf "target:hemlock/searchcoms" :byte-compile t)
136 (comf "target:hemlock/filecoms" :byte-compile t)
137 (comf "target:hemlock/indent" :byte-compile t)
138 (comf "target:hemlock/lispmode")
139 (comf "target:hemlock/comments" :byte-compile t)
140 (comf "target:hemlock/fill")
141 (comf "target:hemlock/text" :byte-compile t)
142 (comf "target:hemlock/doccoms" :byte-compile t)
143 (comf "target:hemlock/srccom" :byte-compile t)
144 (comf "target:hemlock/abbrev" :byte-compile t)
145 (comf "target:hemlock/group" :byte-compile t)
146 (comf "target:hemlock/overwrite" :byte-compile t)
147 (comf "target:hemlock/gosmacs" :byte-compile t)
148 (comf "target:hemlock/eval-server" :byte-compile t)
149 (comf "target:hemlock/dylan" :byte-compile t)
150 (comf "target:hemlock/lispbuf" :byte-compile t)
151 (comf "target:hemlock/lispeval" :byte-compile t)
152 (comf "target:hemlock/icom" :byte-compile t)
153 (comf "target:hemlock/hi-integrity" :byte-compile t)
154 (comf "target:hemlock/ed-integrity" :byte-compile t)
155 (comf "target:hemlock/scribe" :byte-compile t)
156 (comf "target:hemlock/pascal" :byte-compile t)
157 (comf "target:hemlock/edit-defs" :byte-compile t)
158 (comf "target:hemlock/auto-save" :byte-compile t)
159 (comf "target:hemlock/register" :byte-compile t)
160 (comf "target:hemlock/xcoms" :byte-compile t)
161 (comf "target:hemlock/unixcoms" :byte-compile t)
162 (comf "target:hemlock/mh")
163 (comf "target:hemlock/highlight" :byte-compile t)
164 (comf "target:hemlock/dired" :byte-compile t)
165 (comf "target:hemlock/diredcoms" :byte-compile t)
166 (comf "target:hemlock/bufed" :byte-compile t)
167 (comf "target:hemlock/lisp-lib" :byte-compile t)
168 (comf "target:hemlock/completion" :byte-compile t)
169 (comf "target:hemlock/shell" :byte-compile t)
170 (comf "target:hemlock/debug" :byte-compile t)
171 (comf "target:hemlock/netnews" :byte-compile t)
172 (comf "target:hemlock/rcs" :byte-compile t)
173
174 ) ;WITH-COMPILATION-UNIT for commands
175
176 ;; Stuff we want compiled native:
177
178 (comf "target:hemlock/spell-rt")
179 (comf "target:hemlock/spell-corr")
180 (comf "target:hemlock/spell-aug")
181 (comf "target:hemlock/spell-build")
182 (comf "target:hemlock/spellcoms")
183 (comf "target:hemlock/kbdmac")
184
185 (comf "target:hemlock/bindings")
186 (comf "target:hemlock/hacks")
187
188 ) ;WITH-COMPILER-LOG-FILE
189
190
191 (cat-if-anything-changed
192 "target:hemlock/hemlock-library"
193 "target:hemlock/rompsite"
194 "target:hemlock/struct"
195 ; "target:hemlock/struct-ed"
196 "target:hemlock/charmacs"
197 "target:hemlock/input"
198 "target:hemlock/line"
199 "target:hemlock/ring"
200 "target:hemlock/vars"
201 "target:hemlock/buffer"
202 "target:hemlock/macros"
203 "target:hemlock/interp"
204 "target:hemlock/syntax"
205 "target:hemlock/htext1"
206 "target:hemlock/htext2"
207 "target:hemlock/htext3"
208 "target:hemlock/htext4"
209 "target:hemlock/files"
210 "target:hemlock/search1"
211 "target:hemlock/search2"
212 "target:hemlock/table"
213 #+clx "target:hemlock/hunk-draw"
214 "target:hemlock/window"
215 "target:hemlock/screen"
216 "target:hemlock/winimage"
217 "target:hemlock/linimage"
218 "target:hemlock/display"
219 "target:hemlock/termcap"
220 #+clx "target:hemlock/bit-display"
221 "target:hemlock/tty-disp-rt"
222 "target:hemlock/tty-display"
223 "target:hemlock/pop-up-stream"
224 #+clx "target:hemlock/bit-screen"
225 "target:hemlock/tty-screen"
226 "target:hemlock/cursor"
227 "target:hemlock/font"
228 "target:hemlock/streams"
229 "target:hemlock/hacks"
230 "target:hemlock/main"
231 "target:hemlock/echo"
232 "target:hemlock/echocoms"
233 "target:hemlock/command"
234 "target:hemlock/indent"
235 "target:hemlock/comments"
236 "target:hemlock/morecoms"
237 "target:hemlock/undo"
238 "target:hemlock/killcoms"
239 "target:hemlock/searchcoms"
240 "target:hemlock/filecoms"
241 "target:hemlock/doccoms"
242 "target:hemlock/srccom"
243 "target:hemlock/group"
244 "target:hemlock/fill"
245 "target:hemlock/text"
246 "target:hemlock/lispmode"
247 "target:hemlock/ts-buf"
248 "target:hemlock/ts-stream"
249 "target:hemlock/eval-server"
250 "target:hemlock/lispbuf"
251 "target:hemlock/lispeval"
252 "target:hemlock/spell-rt"
253 "target:hemlock/spell-corr"
254 "target:hemlock/spell-aug"
255 "target:hemlock/spellcoms"
256 "target:hemlock/overwrite"
257 "target:hemlock/abbrev"
258 "target:hemlock/icom"
259 "target:hemlock/kbdmac"
260 "target:hemlock/defsyn"
261 "target:hemlock/scribe"
262 "target:hemlock/pascal"
263 "target:hemlock/dylan"
264 "target:hemlock/edit-defs"
265 "target:hemlock/auto-save"
266 "target:hemlock/register"
267 "target:hemlock/xcoms"
268 "target:hemlock/unixcoms"
269 "target:hemlock/mh"
270 "target:hemlock/highlight"
271 "target:hemlock/dired"
272 "target:hemlock/diredcoms"
273 "target:hemlock/bufed"
274 "target:hemlock/lisp-lib"
275 "target:hemlock/completion"
276 "target:hemlock/shell"
277 "target:hemlock/debug"
278 "target:hemlock/netnews"
279 "target:hemlock/rcs"
280 "target:hemlock/bindings")

  ViewVC Help
Powered by ViewVC 1.1.5