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

Contents of /src/tools/comcom.lisp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.30 - (show annotations)
Tue Jul 14 03:51:15 1992 UTC (21 years, 9 months ago) by wlott
Branch: MAIN
Branch point for: patch_16
Changes since 1.29: +85 -13 lines
Added hppa and x86 files.
Keep a bit more safety and debug-info when #-small.
1 ;;; -*- Package: User -*-
2 ;;;
3 (in-package "USER")
4
5 #+bootstrap
6 (copy-packages (cons (c::backend-name c::*target-backend*) '("ASSEM" "C")))
7 #+bootstrap
8 (export '(assem::nop) "ASSEM")
9
10 (defparameter *load-stuff* #+bootstrap t #-bootstrap nil)
11
12 ;;; Import so that these types which appear in the globldb are the same...
13 #+bootstrap
14 (import '(old-c::approximate-function-type
15 old-c::function-info old-c::defstruct-description
16 old-c::defstruct-slot-description)
17 "C")
18
19 (with-compiler-log-file
20 ("target:compile-compiler.log"
21 :optimize
22 '(optimize (speed 2) (space 2) (inhibit-warnings 2)
23 (safety #+small 0 #-small 1)
24 (debug-info #+small .5 #-small 2))
25 :optimize-interface
26 '(optimize-interface (safety #+small 1 #-small 2)
27 (debug-info #+small .5 #-small 2))
28 :context-declarations
29 '(#+small
30 ((:or :macro
31 (:match "$SOURCE-TRANSFORM-" "$IR1-CONVERT-"
32 "$PRIMITIVE-TRANSLATE-" "$PARSE-"))
33 (declare (optimize (safety 1))))
34 (:external (declare (optimize-interface (safety 2) (debug-info 1))))))
35
36 (comf "target:compiler/macros" :load *load-stuff*)
37 (comf "target:compiler/generic/vm-macs" :load *load-stuff* :proceed t)
38 (comf "target:compiler/backend" :load *load-stuff* :proceed t)
39
40 (defvar c::*target-backend* (c::make-backend))
41
42 (when (c:target-featurep :pmax)
43 (comf "target:compiler/mips/parms" :proceed t))
44 (when (c:target-featurep :sparc)
45 (comf "target:compiler/sparc/parms" :proceed t))
46 (when (c:target-featurep :rt)
47 (comf "target:compiler/rt/params" :proceed t))
48 (when (c:target-featurep :hppa)
49 (comf "target:compiler/hppa/parms" :proceed t))
50 (when (c:target-featurep :x86)
51 (comf "target:compiler/hppa/x86" :proceed t))
52 (comf "target:compiler/generic/objdef" :proceed t)
53 (comf "target:compiler/generic/interr")
54
55 (comf "target:code/struct") ; For defstruct description structures.
56 (comf "target:compiler/proclaim") ; For COOKIE structure.
57 (comf "target:compiler/globals")
58
59 (comf "target:compiler/type")
60 (comf "target:compiler/generic/vm-type")
61 (comf "target:compiler/type-init")
62 (comf "target:compiler/sset")
63 (comf "target:compiler/node")
64 (comf "target:compiler/ctype")
65 (comf "target:compiler/vop" :proceed t)
66 (comf "target:compiler/vmdef" :load *load-stuff* :proceed t)
67
68 (unless (c:target-featurep '(or :hppa :x86))
69 (comf "target:compiler/assembler" :proceed t)
70 (comf "target:compiler/disassem"))
71 (comf "target:compiler/new-assem")
72 (comf "target:compiler/alloc")
73 (comf "target:compiler/knownfun")
74 (comf "target:compiler/fndb")
75 (comf "target:compiler/generic/vm-fndb")
76 (comf "target:compiler/main")
77
78 (with-compilation-unit
79 (:optimize '(optimize (debug-info 2) (safety 1)))
80 (comf "target:compiler/ir1tran")
81 (comf "target:compiler/ir1util")
82 (comf "target:compiler/ir1opt"))
83
84 (comf "target:compiler/ir1final")
85 (comf "target:compiler/srctran")
86 (comf "target:compiler/array-tran")
87 (comf "target:compiler/seqtran")
88 (comf "target:compiler/typetran")
89 (comf "target:compiler/generic/vm-typetran")
90 (comf "target:compiler/float-tran")
91 (comf "target:compiler/saptran")
92 (comf "target:compiler/locall")
93 (comf "target:compiler/dfo")
94 (comf "target:compiler/checkgen")
95 (comf "target:compiler/constraint")
96 (comf "target:compiler/envanal")
97
98 (comf "target:compiler/tn")
99 (comf "target:compiler/bit-util")
100 (comf "target:compiler/life")
101
102 (comf "target:code/debug-info")
103
104 (comf "target:compiler/debug-dump")
105 (comf "target:compiler/generic/utils")
106 (comf "target:assembly/assemfile" :load *load-stuff*)
107
108 (with-compilation-unit
109 (:optimize '(optimize (safety #+small 0 #-small 1) #+small (debug-info 1)))
110
111 (when (c:target-featurep :pmax)
112 (comf "target:compiler/mips/insts")
113 (comf "target:compiler/mips/macros" :load *load-stuff*)
114 (comf "target:compiler/mips/vm")
115 (comf "target:compiler/generic/primtype")
116 (comf "target:assembly/mips/support" :load *load-stuff*)
117 (comf "target:compiler/mips/move")
118 (comf "target:compiler/mips/float")
119 (comf "target:compiler/mips/sap")
120 (comf "target:compiler/mips/system")
121 (comf "target:compiler/mips/char")
122 (comf "target:compiler/mips/memory")
123 (comf "target:compiler/mips/static-fn")
124 (comf "target:compiler/mips/arith")
125 (comf "target:compiler/mips/subprim")
126 (comf "target:compiler/mips/debug")
127 (comf "target:compiler/mips/c-call")
128 (comf "target:compiler/mips/cell")
129 (comf "target:compiler/mips/values")
130 (comf "target:compiler/mips/alloc")
131 (comf "target:compiler/mips/call")
132 (comf "target:compiler/mips/nlx")
133 (comf "target:compiler/mips/print")
134 (comf "target:compiler/mips/array")
135 (comf "target:compiler/mips/pred")
136 (comf "target:compiler/mips/type-vops")
137
138 (comf "target:assembly/mips/assem-rtns")
139 (comf "target:assembly/mips/array")
140 (comf "target:assembly/mips/arith")
141 (comf "target:assembly/mips/alloc"))
142
143 (when (c:target-featurep :sparc)
144 (comf "target:compiler/sparc/insts")
145 (comf "target:compiler/sparc/macros" :load *load-stuff*)
146 (comf "target:compiler/sparc/vm")
147 (comf "target:compiler/generic/primtype")
148 (comf "target:compiler/sparc/move")
149 (comf "target:compiler/sparc/float")
150 (comf "target:compiler/sparc/sap")
151 (comf "target:compiler/sparc/system")
152 (comf "target:compiler/sparc/char")
153 (comf "target:compiler/sparc/memory")
154 (comf "target:compiler/sparc/static-fn")
155 (comf "target:compiler/sparc/arith")
156 (comf "target:compiler/sparc/subprim")
157 (comf "target:compiler/sparc/debug")
158 (comf "target:compiler/sparc/c-call")
159 (comf "target:compiler/sparc/cell")
160 (comf "target:compiler/sparc/values")
161 (comf "target:compiler/sparc/alloc")
162 (comf "target:compiler/sparc/call")
163 (comf "target:compiler/sparc/nlx")
164 (comf "target:compiler/sparc/print")
165 (comf "target:compiler/sparc/array")
166 (comf "target:compiler/sparc/pred")
167 (comf "target:compiler/sparc/type-vops")
168
169 (comf "target:assembly/sparc/support" :load *load-stuff*)
170 (comf "target:assembly/sparc/assem-rtns")
171 (comf "target:assembly/sparc/array")
172 (comf "target:assembly/sparc/arith")
173 (comf "target:assembly/sparc/alloc"))
174
175 (when (c:target-featurep :rt)
176 (comf "target:compiler/rt/insts")
177 (comf "target:compiler/rt/macros" :load *load-stuff*)
178 (comf "target:compiler/rt/vm")
179 (comf "target:compiler/rt/move")
180 (if (c:target-featurep :afpa)
181 (comf "target:compiler/rt/afpa")
182 (comf "target:compiler/rt/mc68881"))
183 (comf "target:compiler/rt/sap")
184 (comf "target:compiler/rt/system")
185 (comf "target:compiler/rt/char")
186 (comf "target:compiler/rt/memory")
187 (comf "target:compiler/rt/static-fn")
188 (comf "target:compiler/rt/arith")
189 (comf "target:compiler/rt/subprim")
190 (comf "target:compiler/rt/debug")
191 (comf "target:compiler/rt/c-call")
192 (comf "target:compiler/rt/cell")
193 (comf "target:compiler/rt/values")
194 (comf "target:compiler/rt/alloc")
195 (comf "target:compiler/rt/call")
196 (comf "target:compiler/rt/nlx")
197 (comf "target:compiler/rt/print")
198 (comf "target:compiler/rt/array")
199 (comf "target:compiler/rt/pred")
200 (comf "target:compiler/rt/type-vops")
201
202 (comf "target:assembly/rt/support" :load *load-stuff*)
203 (comf "target:assembly/rt/assem-rtns")
204 (comf "target:assembly/rt/array")
205 (comf "target:assembly/rt/arith")
206 (comf "target:assembly/rt/alloc"))
207
208 (when (c:target-featurep :hppa)
209 (comf "target:compiler/hppa/insts")
210 (comf "target:compiler/hppa/macros" :load *load-stuff*)
211 (comf "target:compiler/hppa/vm")
212 (comf "target:compiler/generic/primtype")
213 (comf "target:assembly/hppa/support" :load *load-stuff*)
214 (comf "target:compiler/hppa/move")
215 (comf "target:compiler/hppa/float")
216 (comf "target:compiler/hppa/sap")
217 (comf "target:compiler/hppa/system")
218 (comf "target:compiler/hppa/char")
219 (comf "target:compiler/hppa/memory")
220 (comf "target:compiler/hppa/static-fn")
221 (comf "target:compiler/hppa/arith")
222 (comf "target:compiler/hppa/subprim")
223 (comf "target:compiler/hppa/debug")
224 (comf "target:compiler/hppa/c-call")
225 (comf "target:compiler/hppa/cell")
226 (comf "target:compiler/hppa/values")
227 (comf "target:compiler/hppa/alloc")
228 (comf "target:compiler/hppa/call")
229 (comf "target:compiler/hppa/nlx")
230 (comf "target:compiler/hppa/print")
231 (comf "target:compiler/hppa/array")
232 (comf "target:compiler/hppa/pred")
233 (comf "target:compiler/hppa/type-vops")
234
235 (comf "target:assembly/hppa/assem-rtns")
236 (comf "target:assembly/hppa/array")
237 (comf "target:assembly/hppa/arith")
238 (comf "target:assembly/hppa/alloc"))
239
240 (when (c:target-featurep :x86)
241 (comf "target:compiler/x86/insts")
242 (comf "target:compiler/x86/macros" :load *load-stuff*)
243 (comf "target:compiler/x86/vm")
244 (comf "target:compiler/generic/primtype")
245 (comf "target:assembly/x86/support" :load *load-stuff*)
246 (comf "target:compiler/x86/move")
247 (comf "target:compiler/x86/float")
248 (comf "target:compiler/x86/sap")
249 (comf "target:compiler/x86/system")
250 (comf "target:compiler/x86/char")
251 (comf "target:compiler/x86/memory")
252 (comf "target:compiler/x86/static-fn")
253 (comf "target:compiler/x86/arith")
254 (comf "target:compiler/x86/subprim")
255 (comf "target:compiler/x86/debug")
256 (comf "target:compiler/x86/c-call")
257 (comf "target:compiler/x86/cell")
258 (comf "target:compiler/x86/values")
259 (comf "target:compiler/x86/alloc")
260 (comf "target:compiler/x86/call")
261 (comf "target:compiler/x86/nlx")
262 (comf "target:compiler/x86/print")
263 (comf "target:compiler/x86/array")
264 (comf "target:compiler/x86/pred")
265 (comf "target:compiler/x86/type-vops")
266
267 (comf "target:assembly/x86/assem-rtns")
268 (comf "target:assembly/x86/array")
269 (comf "target:assembly/x86/arith")
270 (comf "target:assembly/x86/alloc"))
271
272 (comf "target:compiler/pseudo-vops")
273
274 ); with-compilation-unit for back end.
275
276 (comf "target:compiler/aliencomp")
277 (comf "target:compiler/ltv")
278 (comf "target:compiler/gtn")
279 (with-compilation-unit
280 (:optimize '(optimize (debug-info 2) (safety 1)))
281 (comf "target:compiler/ltn"))
282 (comf "target:compiler/stack")
283 (comf "target:compiler/control")
284 (comf "target:compiler/entry")
285 (with-compilation-unit
286 (:optimize '(optimize (debug-info 2) (safety 1)))
287 (comf "target:compiler/ir2tran"))
288 (comf "target:compiler/copyprop")
289 (unless (c:target-featurep '(or :hppa :x86))
290 (comf "target:compiler/assem-opt"))
291 (with-compilation-unit
292 (:optimize '(optimize (debug-info 2) (safety 1)))
293 (comf "target:compiler/represent"))
294 (comf "target:compiler/generic/vm-tran")
295 (with-compilation-unit
296 (:optimize '(optimize (debug-info 2) (safety 1)))
297 (comf "target:compiler/pack"))
298 (comf "target:compiler/codegen")
299 (with-compilation-unit
300 (:optimize '(optimize (debug-info 2) (safety 2)))
301 (comf "target:compiler/debug"))
302 (comf "target:compiler/assem-check")
303 (comf "target:compiler/statcount")
304 (comf "target:compiler/dyncount")
305
306 (comf "target:compiler/dump")
307
308 (comf "target:compiler/generic/core")
309 (if (c:target-featurep '(or :hppa :x86))
310 (comf "target:compiler/generic/new-genesis")
311 (comf "target:compiler/generic/genesis"))
312
313 (comf "target:compiler/eval-comp")
314 (comf "target:compiler/eval")
315
316 ); with-compiler-error-log

  ViewVC Help
Powered by ViewVC 1.1.5