Commit | Line | Data |
---|---|---|
44986d67 MD |
1 | #! /bin/sh -x |
2 | ||
3 | rm -f Makefile Makefile.md README.md qtmd.h qtmdb.s qtmdc.c qtmds.s configuration | |
4 | ||
5 | case $1 in | |
6 | axp*) | |
7 | : "DEC AXP" | |
8 | case $1 in | |
9 | axp-osf1*) | |
10 | : "Compile using /bin/cc under OSF 1.x." | |
11 | ln -s md/axp.1.Makefile Makefile.md | |
12 | ;; | |
13 | axp-osf2*) | |
14 | : "Compile using /bin/cc under OSF 2.x." | |
15 | ln -s md/axp.1.Makefile Makefile.md | |
16 | ;; | |
17 | *) | |
18 | : "Compile using GNU CC." | |
19 | ln -s md/axp.Makefile Makefile.md | |
20 | ;; | |
21 | esac | |
22 | ||
23 | ln -s md/axp.h qtmd.h | |
24 | ln -s md/axp.c qtmdc.c | |
25 | ln -s md/axp.s qtmds.s | |
26 | ln -s md/axp_b.s qtmdb.s | |
27 | ln -s md/axp.README README.md | |
28 | iter_init=1000000000 | |
29 | iter_runone=10000000 | |
30 | iter_blockint=10000000 | |
31 | iter_blockfloat=10000000 | |
32 | iter_vainit0=10000000 | |
33 | iter_vainit2=10000000 | |
34 | iter_vainit4=10000000 | |
35 | iter_vainit8=10000000 | |
36 | iter_vastart0=10000000 | |
37 | iter_vastart2=10000000 | |
38 | iter_vastart4=10000000 | |
39 | iter_vastart8=10000000 | |
40 | iter_bench_call_reg=10000000 | |
41 | iter_bench_call_imm=10000000 | |
42 | iter_bench_add=100000000 | |
43 | iter_bench_load=100000000 | |
44 | ;; | |
45 | ||
46 | hppa*) | |
47 | : "HP's PA-RISC 1.1 processors." | |
48 | ||
49 | case $1 in | |
50 | hppa-cnx-spp*) | |
51 | : "Convex SPP (PA-RISC 1.1 processors)." | |
52 | ln -s md/hppa-cnx.Makefile Makefile.md | |
53 | ;; | |
54 | *) | |
55 | ln -s md/hppa.Makefile Makefile.md | |
56 | ;; | |
57 | esac | |
58 | ||
59 | ln -s md/hppa.h qtmd.h | |
60 | ln -s md/null.c qtmdc.c | |
61 | ln -s md/hppa.s qtmds.s | |
62 | ln -s md/hppa_b.s qtmdb.s | |
63 | iter_init=10000000 | |
64 | iter_runone=1000000 | |
65 | iter_blockint=1000000 | |
66 | iter_blockfloat=1000000 | |
67 | iter_vainit0=1000000 | |
68 | iter_vainit2=1000000 | |
69 | iter_vainit4=1000000 | |
70 | iter_vainit8=1000000 | |
71 | iter_vastart0=1000000 | |
72 | iter_vastart2=1000000 | |
73 | iter_vastart4=1000000 | |
74 | iter_vastart8=1000000 | |
75 | iter_bench_call_reg=10000000 | |
76 | iter_bench_call_imm=10000000 | |
77 | iter_bench_add=100000000 | |
78 | iter_bench_load=100000000 | |
79 | ;; | |
80 | ||
81 | iX86*) | |
82 | case $1 in | |
83 | iX86-ss*) | |
84 | : "Assemlber comments '//'" | |
85 | sed 's/\/\*/\/\//' < md/i386.s > qtmds.s | |
86 | sed 's/\/\*/\/\//' < md/i386_b.s > qtmdb.s | |
87 | ;; | |
88 | ||
89 | *) | |
90 | ln -s md/i386.s qtmds.s | |
91 | ln -s md/i386_b.s qtmdb.s | |
92 | ;; | |
93 | esac | |
94 | : "Intel 80386 and compatibles (not '286...)" | |
95 | ln -s md/default.Makefile Makefile.md | |
96 | ln -s md/i386.h qtmd.h | |
97 | ln -s md/null.c qtmdc.c | |
98 | ln -s md/i386.README README.md | |
99 | iter_init=10000000 | |
100 | iter_runone=1000000 | |
101 | iter_blockint=1000000 | |
102 | iter_blockfloat=1000000 | |
103 | iter_vainit0=1000000 | |
104 | iter_vainit2=1000000 | |
105 | iter_vainit4=1000000 | |
106 | iter_vainit8=1000000 | |
107 | iter_vastart0=1000000 | |
108 | iter_vastart2=1000000 | |
109 | iter_vastart4=1000000 | |
110 | iter_vastart8=1000000 | |
111 | iter_bench_call_reg=1000000 | |
112 | iter_bench_call_imm=1000000 | |
113 | iter_bench_add=100000000 | |
114 | iter_bench_load=10000000 | |
115 | ;; | |
116 | ||
117 | m68k) | |
118 | : "Motorola 68000 family -- incomplete!" | |
119 | ln -s md/default.Makefile Makefile.md | |
120 | ln -s md/m68k.h qtmd.h | |
121 | ln -s md/null.c qtmdc.c | |
122 | ln -s md/m68k.s qtmds.s | |
123 | ln -s md/m68k_b.s qtmdb.s | |
124 | ln -s md/null.README README.md | |
125 | ;; | |
126 | ||
127 | m88k) | |
128 | : "Motorola 88000 family" | |
129 | ln -s md/m88k.Makefile Makefile.md | |
130 | ln -s md/m88k.h qtmd.h | |
131 | ln -s md/m88k.c qtmdc.c | |
132 | ln -s md/m88k.s qtmds.s | |
133 | ln -s md/m88k_b.s qtmdb.s | |
134 | ln -s md/null.README README.md | |
135 | iter_init=1000000 | |
136 | iter_runone=100000 | |
137 | iter_blockint=100000 | |
138 | iter_blockfloat=100000 | |
139 | iter_vainit0=100000 | |
140 | iter_vainit2=100000 | |
141 | iter_vainit4=100000 | |
142 | iter_vainit8=100000 | |
143 | iter_vastart0=100000 | |
144 | iter_vastart2=100000 | |
145 | iter_vastart4=100000 | |
146 | iter_vastart8=100000 | |
147 | iter_bench_call_reg=100000000 | |
148 | iter_bench_call_imm=100000000 | |
149 | iter_bench_add=1000000000 | |
150 | iter_bench_load=100000000 | |
151 | ;; | |
152 | ||
153 | mips*) | |
154 | : "MIPS R2000 and R3000." | |
155 | ||
156 | case $1 in | |
b23e9548 | 157 | mips-irix[56]*) |
44986d67 MD |
158 | : "Silicon Graphics Irix with dynamic linking" |
159 | : "Use mips for irix4." | |
160 | ln -s md/mips-irix5.s qtmds.s | |
161 | ;; | |
162 | *) | |
163 | ln -s md/mips.s qtmds.s | |
164 | ;; | |
165 | esac | |
166 | ||
167 | ln -s md/default.Makefile Makefile.md | |
168 | ln -s md/mips.h qtmd.h | |
169 | ln -s md/null.c qtmdc.c | |
170 | ln -s md/mips_b.s qtmdb.s | |
171 | ln -s md/null.README README.md | |
172 | iter_init=10000000 | |
173 | iter_runone=10000000 | |
174 | iter_blockint=10000000 | |
175 | iter_blockfloat=10000000 | |
176 | iter_vainit0=1000000 | |
177 | iter_vainit2=1000000 | |
178 | iter_vainit4=1000000 | |
179 | iter_vainit8=1000000 | |
180 | iter_vastart0=1000000 | |
181 | iter_vastart2=1000000 | |
182 | iter_vastart4=1000000 | |
183 | iter_vastart8=1000000 | |
184 | iter_bench_call_reg=100000000 | |
185 | iter_bench_call_imm=100000000 | |
186 | iter_bench_add=1000000000 | |
187 | iter_bench_load=100000000 | |
188 | ;; | |
189 | ||
190 | sparc*) | |
191 | : "SPARC processors" | |
192 | case $1 in | |
193 | sparc-os2*) | |
194 | sed 's/_qt_/qt_/' md/sparc.s > qtmds.s | |
195 | sed 's/_b_/b_/' md/sparc_b.s > qtmdb.s | |
196 | ln -s md/solaris.README README.md | |
197 | ;; | |
198 | *) | |
199 | ln -s md/sparc.s qtmds.s | |
200 | ln -s md/sparc_b.s qtmdb.s | |
201 | ln -s md/null.README README.md | |
202 | ;; | |
203 | esac | |
204 | ||
205 | ln -s md/default.Makefile Makefile.md | |
206 | ln -s md/sparc.h qtmd.h | |
207 | ln -s md/null.c qtmdc.c | |
208 | iter_init=10000000 | |
209 | iter_runone=1000000 | |
210 | iter_blockint=1000000 | |
211 | iter_blockfloat=1000000 | |
212 | iter_vainit0=1000000 | |
213 | iter_vainit2=1000000 | |
214 | iter_vainit4=1000000 | |
215 | iter_vainit8=1000000 | |
216 | iter_vastart0=1000000 | |
217 | iter_vastart2=1000000 | |
218 | iter_vastart4=1000000 | |
219 | iter_vastart8=1000000 | |
220 | iter_bench_call_reg=10000000 | |
221 | iter_bench_call_imm=10000000 | |
222 | iter_bench_add=100000000 | |
223 | iter_bench_load=100000000 | |
224 | ;; | |
225 | ||
226 | vax*) | |
227 | : "DEC VAX processors." | |
228 | ln -s md/default.Makefile Makefile.md | |
229 | ln -s md/vax.h qtmd.h | |
230 | ln -s md/null.c qtmdc.c | |
231 | ln -s md/vax.s qtmds.s | |
232 | ln -s md/vax_b.s qtmdb.s | |
233 | ln -s md/null.README README.md | |
234 | iter_init=1000000 | |
235 | iter_runone=100000 | |
236 | iter_blockint=100000 | |
237 | iter_blockfloat=100000 | |
238 | iter_vainit0=100000 | |
239 | iter_vainit2=100000 | |
240 | iter_vainit4=100000 | |
241 | iter_vainit8=100000 | |
242 | iter_vastart0=100000 | |
243 | iter_vastart2=100000 | |
244 | iter_vastart4=100000 | |
245 | iter_vastart8=100000 | |
246 | iter_bench_call_reg=10000000 | |
247 | iter_bench_call_imm=10000000 | |
248 | iter_bench_add=10000000 | |
249 | iter_bench_load=1000000 | |
250 | ;; | |
251 | ||
252 | ksr1) | |
253 | : "Kendall Square Research model KSR-1." | |
254 | : "Varargs is not currently supported." | |
255 | ln -s md/ksr1.Makefile Makefile.md | |
256 | ln -s md/ksr1.h qtmd.h | |
257 | ln -s md/null.c qtmdc.c | |
258 | ln -s md/ksr1.s qtmds.s | |
259 | ln -s md/ksr1_b.s qtmdb.s | |
260 | ln -s md/null.README README.md | |
261 | iter_init=1000000 | |
262 | iter_runone=100000 | |
263 | iter_blockint=100000 | |
264 | iter_blockfloat=100000 | |
265 | iter_vainit0=100000 | |
266 | iter_vainit2=100000 | |
267 | iter_vainit4=100000 | |
268 | iter_vainit8=100000 | |
269 | iter_vastart0=100000 | |
270 | iter_vastart2=100000 | |
271 | iter_vastart4=100000 | |
272 | iter_vastart8=100000 | |
273 | iter_bench_call_reg=10000000 | |
274 | iter_bench_call_imm=10000000 | |
275 | iter_bench_add=10000000 | |
276 | iter_bench_load=1000000 | |
277 | ;; | |
278 | ||
279 | clean) | |
280 | : Deconfigure | |
281 | exit 0 | |
282 | ;; | |
283 | ||
284 | *) | |
285 | echo "Unknown configuration" | |
286 | exit 1 | |
287 | ;; | |
288 | esac | |
289 | ||
290 | cat Makefile.md Makefile.base > Makefile | |
291 | ||
292 | echo set config_machine=$1 >> configuration | |
293 | echo set config_init=$iter_init >> configuration | |
294 | echo set config_runone=$iter_runone >> configuration | |
295 | echo set config_blockint=$iter_blockint >> configuration | |
296 | echo set config_blockfloat=$iter_blockfloat >> configuration | |
297 | echo set config_vainit0=$iter_vainit0 >> configuration | |
298 | echo set config_vainit2=$iter_vainit2 >> configuration | |
299 | echo set config_vainit4=$iter_vainit4 >> configuration | |
300 | echo set config_vainit8=$iter_vainit8 >> configuration | |
301 | echo set config_vastart0=$iter_vastart0 >> configuration | |
302 | echo set config_vastart2=$iter_vastart2 >> configuration | |
303 | echo set config_vastart4=$iter_vastart4 >> configuration | |
304 | echo set config_vastart8=$iter_vastart8 >> configuration | |
305 | echo set config_bcall_reg=$iter_bench_call_reg >> configuration | |
306 | echo set config_bcall_imm=$iter_bench_call_imm >> configuration | |
307 | echo set config_b_add=$iter_bench_add >> configuration | |
308 | echo set config_b_load=$iter_bench_load >> configuration |