config 7.2 KB

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