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

Contents of /src/tools/hemcom.lisp

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.5