install.doc 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252
  1. .\" $Header$
  2. .if n .nr PD 1v
  3. .if n .nr LL 78m
  4. .if n .ll 78m
  5. .TL
  6. Amsterdam Compiler Kit Installation Guide
  7. .AU
  8. Ed Keizer
  9. (revised for 3rd and 4th distribution by Ceriel Jacobs)
  10. .AI
  11. Vakgroep Informatica
  12. Vrije Universiteit
  13. Amsterdam
  14. .NH
  15. Introduction
  16. .PP
  17. This document
  18. describes the process of installing Amsterdam Compiler Kit.
  19. It depends on your combination of hard- and software how
  20. hard it will be to install the Kit.
  21. This description is intended for a VAX running BSD 4.1
  22. .UX
  23. \.
  24. Installation on VAX BSD4.2/4.3 systems,
  25. Sun-2 or Sun-3 systems running Release 3.0 or newer, and some System V systems
  26. should be easy.
  27. Installation on PDP 11's running
  28. .UX
  29. Version 7, BSD 2.8, or 2.9
  30. should also be easy, as long
  31. as they have separate instruction and data space.
  32. Installation on machine's without this feature, like PDP 11/34,
  33. PDP 11/60 requires extensive surgery on some programs and is
  34. thought of as impossible.
  35. See section 7 for installation on other systems.
  36. .PP
  37. On small machines, like the PDP-11, the Modula-2 front-end is only available
  38. for 2 byte integer, 2 byte pointer machines, so you can not cross-compile
  39. Modula-2 programs for f.i. a MC68000, on a PDP-11.
  40. .NH
  41. Restoring tree
  42. .PP
  43. The process of installing Amsterdam Compiler Kit is quite simple.
  44. It is important that the original Amsterdam Compiler Kit
  45. distribution tree structure is restored.
  46. Proceed as follows
  47. .IP " \-" 10
  48. Create a directory, for example /usr/em, on a device
  49. with at least 25 Megabytes left.
  50. .IP " \-"
  51. Change to that directory (cd ...); it will be the working directory.
  52. .IP " \-"
  53. Extract all files from the distribution medium, for instance
  54. magtape:
  55. \fBtar x\fP.
  56. .IP " \-"
  57. Keep a copy of the original distribution to be able to repeat the process
  58. of installation in case of disasters.
  59. This copy is also useful as a reference point for diff-listings.
  60. .LP
  61. .bp
  62. The directories in the tree contain the following information:
  63. .sp 1
  64. .nr PD 0
  65. .IP "bin" 14
  66. .br
  67. the few utilities that knot things together.
  68. See the section about "Commands".
  69. .IP "lib"
  70. .br
  71. root of a tree containing almost all binaries and libraries used by
  72. commands.
  73. All files specific to a certain machine are collected in one subtree
  74. per machine. E.g. "lib/pdp", "lib/z8000".
  75. The names used here are the same names as used for subtrees
  76. of "mach".
  77. .IP "lib/descr"
  78. .br
  79. Command descriptor files used by the program ack.
  80. .IP "lib/LLgen"
  81. .br
  82. Files used by the LL(1) Parser-generator.
  83. .br
  84. .IP "lib/ego"
  85. .br
  86. Files used by the global optimizer.
  87. .br
  88. .IP "etc"
  89. .br
  90. The main description of EM sits here.
  91. Files (e.g. em_table) describing
  92. the opcodes and pseudos in use,
  93. the operands allowed, effect in stack etc. etc.
  94. Make in this directory creates most of the files in "h"
  95. and "util/data".
  96. This make should only be called when the EM definition is
  97. changed.
  98. .IP "include/_tail_cc"
  99. .br
  100. Include files needed by modules
  101. in the C library from lang/cem/libcc.
  102. Especially needed for "stdio".
  103. .IP "include/_tail_mon"
  104. .br
  105. More or less system independent include files needed by modules
  106. in the library lang/cem/libcc/mon.
  107. .IP "h"
  108. .br
  109. The #include files for:
  110. .TS
  111. l l.
  112. arch.h Definition of the ACK archive format.
  113. as_spec.h Used by EM assembler and interpreters.
  114. bc_io.h Used by the Basic run-time system.
  115. bc_string.h Used by the Basic run-time system.
  116. cg_pattern.h Used by the backend program "cg" and its bootstrap.
  117. cgg_cg.h Used by the backend program "ncg" and its bootstrap.
  118. em_abs.h Contains trap numbers and address for lin and fil
  119. em_flag.h Definition of bits in array em_flag in lib/em_data.a
  120. Describes parameters effect on flow of instructions
  121. em_mes.h Definition of names for mes pseudo numbers
  122. em_mnem.h instruction => compact mapping.
  123. em_path.h Pathnames used by \fIack\fP, intended
  124. for all utilities
  125. em_pseu.h pseudo instruction => compact mapping
  126. em_ptyp.h Useful for compact code reading/writing,
  127. defines classes of parameters
  128. em_reg.h Definition of mnemonics indicating register type.
  129. em_spec.h Definition of constants used in compact code
  130. local.h Various definitions for local versions
  131. pc_err.h Definitions of error numbers in Pascal
  132. pc_file.h Macro's used in file handling in Pascal
  133. pc_size.h Sizes of objects used by Pascal compiler and
  134. run-time system.
  135. em_reg.h Definition of names for register types.
  136. ocm_chan.h Used by the occam run-time system
  137. ocm_parco.h Used by the occam run-time system
  138. ocm_proc.h Used by the occam run-time system
  139. m2_traps.h Used by the Modula-2 run-time system
  140. .TE
  141. .IP "modules"
  142. .br
  143. root of a tree containing modules for compiler writers.
  144. .IP "modules/man"
  145. .br
  146. manual pages for all modules.
  147. .IP "modules/lib"
  148. .br
  149. contains module objects.
  150. .IP "modules/src"
  151. .br
  152. contains sources of the modules, each module in its own directory.
  153. .IP "modules/h"
  154. .br
  155. include files for some of the modules.
  156. .IP "modules/pkg"
  157. .br
  158. include files for some of the modules.
  159. .IP "doc"
  160. .br
  161. This directory contains the unformatted documents for the Kit.
  162. A list of the available documents can be found in the last section.
  163. .IP "doc/em"
  164. .br
  165. The EM-manual IR-81.
  166. .IP "doc/em/int"
  167. .br
  168. The EM interpreter written in Pascal.
  169. .IP "mkun"
  170. .br
  171. The PUBMAC macro package for nroff/troff from the Katholieke Universiteit at
  172. Nijmegen.
  173. It is used for the EM reference manual.
  174. The Makefile installs the macro package in
  175. /usr/lib/tmac.
  176. This package is in the public domain.
  177. .IP "mach"
  178. .br
  179. just there to group the directories with all sources for each machine.
  180. The section about "Machines" of this manual indicates which subdirectories
  181. are used for which systems.
  182. .br
  183. These directories have subdirectories named:
  184. .in +3n
  185. .TS
  186. l l.
  187. cg the backend (*.m => *.s)
  188. ncg the new backend (*.m => *.s)
  189. as the assembler (*.s => *.o) or
  190. assembler/linker (*.s + libraries => a.out)
  191. cv Conversion programs for a.out files.
  192. dl Down-load programs
  193. top the target optimizer
  194. libem Sources for EM runtime system, only depending on CPU type
  195. libbc Used to create Basic run-time system and libraries
  196. libcc Used to create C run-time system and libraries
  197. libpc Used to create Pascal run-time system and libraries
  198. liboc Used to create Occam run-time system and libraries
  199. libm2 Used to create Modula-2 run-time system and libraries
  200. libfp Used to create floating point library
  201. libsys Sources for system-dependent EM library
  202. test Various tests
  203. int Source for an interpreter
  204. ce code expander (fast back-end producing either .s or .o files)
  205. .TE
  206. .in -3n
  207. The directory proto contains files used by most machines,
  208. like machine-independent sources and Makefiles.
  209. .in +3n
  210. .TS
  211. l l.
  212. mach/proto/cg Current backend sources.
  213. mach/proto/ncg New backend sources.
  214. mach/proto/as Assembler sources.
  215. mach/proto/top Target optimizer sources.
  216. mach/proto/fp Floating point package sources.
  217. mach/proto/libg Makefile for compiling libraries.
  218. .TE
  219. .IP "emtest"
  220. .br
  221. Contains prototype of em test set.
  222. .IP "man"
  223. .br
  224. Man files for various utilities
  225. .IP "lang"
  226. .br
  227. Just there to group the directories for all front-ends
  228. .IP "lang/pc"
  229. .br
  230. Pascal front-end
  231. .IP "lang/pc/libpc"
  232. .br
  233. Source of Pascal run-time system (in EM or C)
  234. .IP "lang/pc/test"
  235. .br
  236. Some test programs written in Pascal
  237. .IP "lang/pc/pem"
  238. .br
  239. The Pascal compiler proper
  240. .IP "lang/cem"
  241. .br
  242. C front-end
  243. .IP "lang/cem/libcc"
  244. .br
  245. Directories with sources of C runtime system, libraries (in EM or C)
  246. .IP "lang/cem/libcc/gen"
  247. .br
  248. Sources for routines in chapter III of UNIX programmers manual,
  249. excluding Stdio
  250. .IP "lang/cem/libcc/stdio"
  251. .br
  252. Stdio sources
  253. .IP "lang/cem/libcc/math"
  254. .br
  255. Sources for mathematical routines, normally available with the
  256. \fB-lm\fP option to \fIcc\fP.
  257. .IP "lang/cem/libcc/mon"
  258. .br
  259. Sources for routines in chapter II, written in EM
  260. .IP "lang/cem/cemcom"
  261. .br
  262. The compiler proper
  263. .IP "lang/cem/ctest"
  264. .br
  265. C test set
  266. .IP "lang/cem/ctest/cterr"
  267. .br
  268. Programs developed for pinpointing previous errors
  269. .IP "lang/cem/ctest/ct*"
  270. .br
  271. The test programs.
  272. .IP "lang/basic/src"
  273. .br
  274. The compiler proper.
  275. .IP "lang/basic/lib"
  276. .br
  277. Basic run-time library source.
  278. .IP "lang/basic/test"
  279. .br
  280. Various Basic programs.
  281. .IP "lang/occam"
  282. .br
  283. Occam front-end.
  284. .IP "lang/occam/comp"
  285. .br
  286. The compiler proper.
  287. .IP "lang/occam/lib"
  288. .br
  289. Source of Occam run-time system (in EM or C).
  290. .IP "lang/occam/test"
  291. .br
  292. Some Occam programs.
  293. .IP "lang/m2"
  294. .br
  295. Modual-2 front-end.
  296. .IP "lang/m2/comp"
  297. .br
  298. The compiler proper.
  299. .IP "lang/m2/libm2"
  300. .br
  301. Source of Modula-2 run-time system (in EM, C and Modula-2).
  302. .IP "lang/m2/m2mm"
  303. .br
  304. Modula-2 makefile generator.
  305. .IP "lang/m2/test"
  306. .br
  307. Some Modula-2 example programs.
  308. .IP "util"
  309. .br
  310. Contains directories with sources for various utilities
  311. .IP "util/ack"
  312. .br
  313. The program used for translation with the Kit.
  314. .IP "util/opt"
  315. .br
  316. EM peephole optimizer (*.k => *.m).
  317. .IP "util/ego"
  318. .br
  319. The global optimizer.
  320. .IP "util/topgen"
  321. .br
  322. The target optimizer generator..
  323. .IP "util/misc"
  324. .br
  325. Decode (*.[km] => *.e) + encode (*.e => *.k).
  326. .IP "util/data"
  327. .br
  328. The C-code for `lib/em_data.a`.
  329. These sources are created by the Makefile in `etc`.
  330. .IP "util/ass"
  331. .br
  332. The EM assembler (*.[km] + libraries => e.out).
  333. .IP "util/arch"
  334. .br
  335. The archivers to be used for ALL EM utilities.
  336. .IP "util/cgg"
  337. .br
  338. A program needed for compiling backends.
  339. .IP "util/ncgg"
  340. .br
  341. A program needed for compiling the newest backends.
  342. .IP "util/cpp"
  343. .br
  344. The C preprocessor.
  345. .IP "util/shf"
  346. .br
  347. Various shell files.
  348. .IP "util/LLgen"
  349. .br
  350. The extended LL(1) parser generator.
  351. .IP "util/amisc"
  352. .br
  353. Contains some programs handling ACK a.out format, such as anm, asize.
  354. .IP "util/cmisc"
  355. .br
  356. Contains some programs to help in resolving name conflicts, and
  357. a dependency generator for makefiles.
  358. .IP "util/led"
  359. .br
  360. The ACK link-editor, reading ACK relocatable a.out format, and writing
  361. ACK a.out format.
  362. .IP "util/int"
  363. .br
  364. An EM interpreter, written in C. Very useful for checking out software.
  365. Unfortunately not available for small machines.
  366. .IP "util/ceg"
  367. .br
  368. Code expander generator.
  369. .ne 4
  370. .LP
  371. All pathnames mentioned in the text of this document are relative to the
  372. ACK home directory, unless they start with '/'.
  373. .sp 1
  374. .NH
  375. Adapting ACK to your system
  376. .PP
  377. Before compiling the sources in the Kit some installation dependent
  378. actions have to be taken.
  379. Most of these are performed by an interactive shell script in the file
  380. .I first
  381. in a directory of the same name.
  382. .LP
  383. These actions are:
  384. .sp 1
  385. .IP \-
  386. Automatically checking whether you included the ACK bin directory in your
  387. shell PATH.
  388. See also the section on "commands".
  389. .IP \-
  390. Automatically setting the pathname of the parent directory in ../h/em_path.h.
  391. See also the section on "pathnames".
  392. .IP \-
  393. Discovering how to call
  394. .I cc
  395. to get it to include the
  396. .I lex
  397. library.
  398. .IP \-
  399. Asking you for the type of system you have
  400. and creating the shell script "ack_sys" in the Kit's bin directory.
  401. Several utilities make use of "ack_sys" to determine the type of
  402. system you have.
  403. The current choice is between:
  404. .sp 1
  405. .TS
  406. c c c
  407. l l l.
  408. answer system type default machine
  409. pdp_v7 PDP11 with sep I/D and version 7 pdp
  410. vax_bsd4_1a VAX11 with BSD4.1a vax4
  411. vax_bsd4_2 VAX11 with BSD4.2 vax4
  412. vax_sysV_2 VAX11 with System V.2 vax4
  413. pc_ix IBM PC with PC/IX i86
  414. xenix3 IBM AT with Microsoft Xenix V3.2 xenix3
  415. i386 Intel 80386 system running Xenix System V i386
  416. m68_unisoft Motorola 68000 with Unisoft UNIX m68k2
  417. m68_pmds Philips PMDS pmds
  418. m68_sysV_0 68000 with Uniplus UNIX System V.0 mantra
  419. sun3 Sun 3 Motorola 68020 workstation sun3
  420. sun2 Sun 2 Motorola 68010 workstation sun2
  421. SMALL Neither of the above, small address space i86
  422. ANY Neither of the above m68k2
  423. .TE
  424. .sp 1
  425. For some of these, the installation procedure has not been tested, as
  426. we don't have them.
  427. For others, the installation procedure has only been tested with earlier
  428. distributions, as we don't have those systems anymore.
  429. However,
  430. the pdp_v7, vax_bsd4_1a, sun3 and m68 systems are known to behave
  431. reasonably.
  432. The Sun systems should run Release 3.0 or newer.
  433. For ANY you can use any name you fancy,
  434. but the Kit will not be able to compile programs for your system.
  435. If you want to do that you have to read the section about "compilation
  436. on a different machine".
  437. .IP \-
  438. Automatically setting the default machine for which code is
  439. produced to your own type of system according to the table above.
  440. This in done in the file "h/local.h".
  441. See also the section 8.2.
  442. .IP \-
  443. Automatically editing a few description files that tell
  444. ACK to use your system's assembler.
  445. On the VAX the Kit uses the native assembler and linker.
  446. The description file lib/vax4/descr has to be altered to prevent
  447. attempts to assemble programs with unsuitable assemblers.
  448. The original descr file is copied to descr.orig.
  449. .IP \-
  450. The VAX backend cannot be booted on systems
  451. with a 16-bit address space systems.
  452. The program lib/cgg needs more memory than available to transform
  453. the table into files suitable for the C-compiler.
  454. Therefore files tables1.h and tables1.c have been provided in
  455. the directory mach/vax4/cg.
  456. These must be copied to tables.h and tables.c
  457. to get working code-generators for the VAX on PDP11's.
  458. You will hardly be able to use these, because the
  459. code generated by these programs cannot be
  460. assembled and loaded without a native VAX assembler,
  461. but its nice to be able to look at the code produced.
  462. The same problem occurs for the m68k2 backend and the m68020 backend,
  463. and the same solution is chosen.
  464. .IP \-
  465. On machines with a 16-bit address space, the C-compiler has no
  466. builtin preprocessor. Arangements are made to this effect.
  467. .IP \-
  468. On the PDP,
  469. .I ranlib
  470. is not used, because it does not work properly,
  471. at least, on our 2.9 BSD system it does'nt.
  472. This is done by creating a dummy shell script
  473. .I ranlib
  474. in the ACK bin directory.
  475. If you are sure that your
  476. .I ranlib
  477. does work properly, you can just remove the shell script before
  478. installing the Kit.
  479. .LP
  480. .sp 1
  481. Some actions still have to be done by hand.
  482. .sp 1
  483. .IP \-
  484. The installation of the PUBMAC macro package is not done
  485. automatically because you need super-user privileges to do
  486. that on most systems.
  487. This macro package is used with several of the documents
  488. provided in the Kit.
  489. .IP \-
  490. UNIX V7 as originally distributed contains a few bugs that
  491. prevent correct execution of some of the larger programs.
  492. See the section named "Fixes for the UNIX V7 system"
  493. about what to do.
  494. Berkeley 2.8 or 2.9 may also have some of these bugs.
  495. .IP \-
  496. The manual files for the Kit can be copied to their
  497. appropriate place in the system by giving the command "make install"
  498. in the man directory, but only
  499. .B after
  500. running the installation of the
  501. Kit itself.
  502. .NH
  503. Compiling the Kit
  504. .PP
  505. The next step in the installation process is to compile
  506. the sources in the Kit and install them in their places
  507. in the lib and bin directories.
  508. .PP
  509. Most directories containing sources have Makefiles
  510. used to compile and install the programs in that
  511. directory.
  512. All programs needed for compilation and/or cross compilation
  513. with the Kit are installed in the directories "bin" and "lib"
  514. by these Makefiles.
  515. These Makefiles adhere to a standard which is described in the
  516. section 9.
  517. .LP
  518. You do not have to start all these Makefiles separately.
  519. We wrote a shell script calling the make's needed to install
  520. the whole Kit.
  521. This script consists of the file TakeAction in the Kit's root
  522. directory and a few files called Action in some directories.
  523. The Action files describe in a very simple form which actions
  524. have to be performed in which directories.
  525. The default action is to start "make install && make clean".
  526. The output of each make is diverted to a file called "Out"
  527. in the same directory as the make was started in.
  528. If the make was successful (return code 0) the Out file is removed
  529. and the script TakeAction produces a small message telling you
  530. that it succeeded in fulfilling its goal.
  531. If the make was not successful (any other return code) the Out file
  532. is left alone for further examination and a small message telling you
  533. to look at that file is produced by TakeAction.
  534. .LP
  535. For some programs the scripts already know they can't be
  536. installed on your type of system.
  537. In that case they produce a message "Sorry, ....." and
  538. happily proceed with further installation commands.
  539. .PP
  540. Compilation of the whole Kit might take anything from a few
  541. hours to more than a day.
  542. If you do not want to install libraries etc. for a particular
  543. machine you can edit the file Action and comment out the relevant entries.
  544. Lines starting with a '!' are comments.
  545. .PP
  546. If this compilation went reasonably successful you should be able
  547. to use the Kit.
  548. Read the next section and the manuals provided
  549. with the Kit (in the man directory) on how to use it.
  550. .NH 2
  551. Problems you may meet
  552. .NH 3
  553. on Unisoft m68000 systems.
  554. .PP
  555. The Unisoft C compiler has a bug which impedes the correct
  556. translation of the peephole optimizer.
  557. For a more detailed description of this phenomenen see
  558. the file "mach/m68k2/Unisoft_bug".
  559. .NH 3
  560. with backends
  561. .PP
  562. The backends for the PDP11, VAX with BSD4.1, Motorola 68000 and
  563. Intel 8086 have been heavily used by ourselves and are well tested.
  564. The backends for the other machines are known to run our own
  565. test programs,
  566. but might reveal errors when more heavily used.
  567. .NH 2
  568. An example output of TakeAction.
  569. .PP
  570. .DS
  571. System definition -- done
  572. EM definition -- done
  573. LL(1) Parser generator -- done
  574. EM definition library -- done
  575. C utilities -- done
  576. system-call interface module -- done
  577. string routines module -- done
  578. formatted print module -- done
  579. assertion module -- done
  580. memory allocation module -- done
  581. fast, linear time malloc -- done
  582. EM messages generation module -- done
  583. identifier table module -- done
  584. input module -- done
  585. ACK-object reading and writing module -- done
  586. EM-code reading module -- done
  587. EM code generation module -- done
  588. Modules -- done
  589. C preprocessor -- done
  590. ACK object utilities -- done
  591. Encode/Decode -- done
  592. Shell files in bin -- done
  593. EM assembler -- done
  594. EM Peephole optimizer -- done
  595. .
  596. .
  597. .
  598. EM Global optimizer -- done
  599. ACK archiver -- done
  600. Program 'ack' -- done
  601. Bootstrap for backend tables -- done
  602. Bootstrap for newest form of backend tables -- done
  603. LED link editor -- done
  604. TOPGEN target optimizer generator -- done
  605. C frontend -- done
  606. Basic frontend -- done
  607. Occam frontend -- done
  608. Intel 8086 assembler -- done
  609. Intel 8086 backend -- done
  610. Intel 8086 C libraries -- done
  611. Intel 8086 EM library -- done
  612. Intel 8086 Pascal library -- done
  613. Intel 8086 PC/IX systemcall library -- done
  614. Intel 8086 Basic library -- done
  615. Intel 8086 Occam library -- done
  616. Intel 8086 conversion program from ack.out --> PC/IX a.out -- done
  617. Intel 8086 support -- done
  618. .
  619. .
  620. .
  621. Motorola 68000 assembler -- done
  622. Motorola 68000 2-4 backend -- done
  623. Motorola 68000 2-4 conversion program -- done
  624. Motorola 68000 target optimizer -- done
  625. Motorola 68000 2-4 C libraries -- done
  626. Motorola 68000 2-4 EM library -- done
  627. Motorola 68000 2-4 Pascal library -- done
  628. Motorola 68000 2-4 System library -- done
  629. Motorola 68000 2-4 Basic library -- done
  630. Motorola 68000 2-4 Occam library -- done
  631. Sorry, Motorola 68000 interpreters can only be made on m68* systems
  632. Motorola 68000 2-4 support -- done
  633. .
  634. .
  635. .
  636. PDP 11 assembler -- done
  637. PDP 11 backend -- done
  638. PDP 11 target optimizer -- done
  639. Sorry, PDP 11 interpreter can only be made on pdp* systems
  640. Sorry, PDP 11 C libraries can only be made on pdp* systems
  641. Sorry, PDP 11 EM library can only be made on pdp* systems
  642. Sorry, PDP 11 systemcall library can only be made on pdp* systems
  643. Sorry, PDP 11 Pascal library can only be made on pdp* systems
  644. Sorry, PDP 11 Basic library can only be made on pdp* systems
  645. Sorry, PDP 11 Occam library can only be made on pdp* systems
  646. PDP 11 support -- done
  647. .
  648. .
  649. .
  650. Vax 4-4 backend -- done
  651. Sorry, Vax 4-4 C libraries can only be made on vax* systems
  652. Sorry, Vax 4-4 EM library can only be made on vax* systems
  653. Sorry, Vax 4-4 Occam library can only be made on vax* systems
  654. Sorry, Vax 4-4 Basic library can only be made on vax* systems
  655. Sorry, Vax 4-4 systemcall interface can only be made on vax* systems
  656. Vax target optimizer -- done
  657. Vax 4-4 support -- done
  658. M68020 assembler -- done
  659. M68020 backend -- done
  660. M68020 EM library -- done
  661. M68020 system call library -- done
  662. M68020 C libraries -- done
  663. M68020 PC library -- done
  664. M68020 Basic library -- done
  665. M68020 Occam library -- done
  666. Sorry, M68020 VME131 System V/68 R2V2.1 conversion can only be made on m68020 systems
  667. M68020 System V/68 support -- done
  668. Ack.out --> Sun 3 M68020 a.out format conversion program -- done
  669. Sun 3 M68020 systemcall library -- done
  670. Sun 3 M68020 C libraries -- done
  671. Sun 3 M68020 support -- done
  672. Ack.out --> Sun 2 M68000 a.out format conversion program -- done
  673. Sun 2 M68000 systemcall library -- done
  674. Sun 2 M68000 C libraries -- done
  675. Sun 2 M68000 support -- done
  676. .
  677. .
  678. .
  679. Failed for Pascal frontend, see lang/pc/pem/Out
  680. .DE
  681. .PP
  682. The lines starting with "Sorry, " tell you that certain programs cannot
  683. be translated on your machine.
  684. The lines starting with "Failed for" tell
  685. you that certain programs/libraries which were expected to,
  686. but did not compile.
  687. Only the Pascal frontend failed to compile in this example.
  688. If you want to repeat a certain part of the installation, look in
  689. the Action file for the directory in which that part is to be found.
  690. If that directory contains an Action file issue the command
  691. "sh EM_DIR/TakeAction", otherwise type "make install".
  692. .NH
  693. Commands
  694. .PP
  695. The following commands are available in the bin directory after compilation
  696. of the Kit:
  697. .sp 1
  698. .IP "\fIack\fP, \fIacc\fP, \fIabc\fP, \fIapc\fP, \fIocm\fP, \fIm2\fP and their links"
  699. .br
  700. The names mentioned here can be used to compile Pascal, C, etc... programs.
  701. Most of the links can be used to generate code for a particular
  702. machine.
  703. See also the section about "Machines".
  704. .IP \fIarch\fP
  705. .br
  706. The archiver used for the EM- and universal assembler/loader.
  707. .IP \fIaal\fP
  708. .br
  709. The archiver used for ACK objects.
  710. .IP \fIem\fP
  711. .br
  712. This program selects a interpreter to execute an e.out file.
  713. Interpreters exist for PDP-11 and Motorola 68000 systems.
  714. .IP \fIeminform\fP
  715. .br
  716. The program to unravel the post-mortem information of
  717. the EM interpretator for the PDP-11.
  718. .IP \fILLgen\fP
  719. .br
  720. The LL(1) parser generator.
  721. .IP \fIack_sys\fP
  722. .br
  723. A shell script producing an identification of your system.
  724. Used by some utilities to determine what is, and what is
  725. not feasible on your system. (Like translating PDP assembly).
  726. .IP \fImarch\fP
  727. .br
  728. A shell script used while compiling libraries.
  729. .IP "\fIasize\fP, \fIanm\fP, \fIastrip\fP"
  730. .br
  731. Do the same as \fIsize\fP, \fInm\fP and \fIstrip\fP, but for ACK object format.
  732. .IP \fImkdep\fP
  733. .br
  734. A dependency generator for makefiles.
  735. .IP "\fIcid\fP, \fIprid\fP, \fIcclash\fP"
  736. .br
  737. Some utilities for handling name clashes in C programs. Some
  738. systems have C-compilers with only 7 or 8 characters significant in
  739. identifiers.
  740. .IP "\fItabgen\fP
  741. .br
  742. A utility for generating character tables for C-programs.
  743. .IP \fIint\fP
  744. .br
  745. An EM interpreter. This one is written in C, and is very useful for checking
  746. out programs.
  747. .sp 1
  748. .LP
  749. We currently make the Kit available to our users by telling
  750. them that they should include the bin directory of the Kit in
  751. their PATH shell variable.
  752. The programs will still work when moved to a different
  753. directory or linked to.
  754. Copying should preferably be done with tar, since links are
  755. heavily used.
  756. Renaming of the programs linked to \fIack\fP will not always
  757. produce the desired result.
  758. This program uses its call name as an argument.
  759. Any call name not being \fIcc\fP, \fIacc\fP, \fIabc\fP, \fIpc\fP,
  760. \fIocm\fP, \fIm2\fP, or \fIapc\fP will be
  761. interpreted as the name of a 'machine description' and the
  762. program will try to find a description file with that name.
  763. The installation process will only touch the utilities in the Kit's bin
  764. directory, not your own copies.
  765. .NH
  766. Machines
  767. .PP
  768. Underneath you will find a table with entries for all commands in
  769. the bin directory used to (cross)compile for a particular machine.
  770. The name in the first column give the name in the bin directory.
  771. The column headed dir indicates which subdirectories of
  772. lib are needed for compilation.
  773. The column head i/p contains the integer and pointer size used in units of
  774. bytes.
  775. The subdirectories with the same name in mach contain the sources.
  776. A * in the column headed 'fp' indicates that floating point can be used
  777. for that particular machine. A + in that column indicates that floating
  778. point is only available under the '-fp' option. In this case, software
  779. floating point emulation is used.
  780. .TS
  781. c c c c c c c
  782. l l l l l l l.
  783. command system i/p languages fp dir remarks
  784. pdp PDP/UNIX V7 2/2 C * pdp needs sep. I/D
  785. Pascal No assembler
  786. Basic
  787. Occam
  788. Modula-2
  789. vax4 VAX/BSD 4.? 4/4 C * vax4 No assembler
  790. System V.2 Pascal
  791. Basic
  792. Occam
  793. Modula-2
  794. m68k2 M68000/Unisoft 2/4 C + m68k2
  795. Pascal
  796. Basic
  797. Occam
  798. Modula-2
  799. m68k4 M68000/Unisoft 4/4 C + m68k4
  800. Pascal m68k2
  801. Basic
  802. Occam
  803. Modula-2
  804. pmds M68000/PMDS 2/4 C + pmds Philips Micro
  805. Pascal m68k2 Devel. System
  806. Basic
  807. Occam
  808. Modula-2
  809. pmds4 M68000/PMDS 4/4 C + pmds4 Philips Micro
  810. Pascal m68k2 Devel. System
  811. Basic m68k4
  812. Occam
  813. Modula-2
  814. mantra M68000/SysV.0 4/4 C + mantra
  815. Pascal m68k2
  816. Basic m68k4
  817. Occam
  818. Modula-2
  819. m68020 M68020/V/68 4/4 C + m68020
  820. R2V2.1 Pascal
  821. Basic
  822. Occam
  823. Modula-2
  824. sun3 SUN 3 R3.0 4/4 C + sun3
  825. Pascal m68020
  826. Basic
  827. Occam
  828. Modula-2
  829. sun2 SUN 2 R3.0 4/4 C + sun2
  830. Pascal m68k4
  831. Basic m68k2
  832. Occam
  833. Modula-2
  834. i86 IBM PC/IX 2/2 C + i86 IBM PC with PC/IX
  835. Pascal Causes kernel crashes
  836. Basic
  837. Occam
  838. Modula-2
  839. xenix3 Microsoft Xenix V3 2/2 C + xenix3 IBM AT with Xenix
  840. Pascal i86
  841. Basic
  842. Occam
  843. Modula-2
  844. i386 SCO Xenix System V 4/4 C + i386 Intel 80386 system with Xenix System V
  845. Pascal
  846. Basic
  847. Occam
  848. Modula-2
  849. minix Minix PC 2/2 C + minix IBM PC running Minix
  850. Pascal i86
  851. Basic
  852. Occam
  853. Modula-2
  854. minixST ST Minix 2/4 C + minixST Atari ST running Minix
  855. Pascal m68k2
  856. Basic
  857. Occam
  858. Modula-2
  859. z8000 Zilog 8000 2/2 C z8000 Central Data
  860. Pascal CPU board
  861. Basic Uses assembler/loader
  862. Occam
  863. Modula-2
  864. em22 EM machine 2/2 C * em22 Needs interpreter
  865. Pascal
  866. Basic
  867. Occam
  868. Modula-2
  869. em24 EM machine 2/4 C * em24 Needs interpreter
  870. Pascal
  871. Basic
  872. Occam
  873. Modula-2
  874. em44 EM machine 4/4 C * em44 Needs interpreter
  875. Pascal
  876. Basic
  877. Occam
  878. Modula-2
  879. 6500 6502/BBC 2/2 C 6500 Uses assembler/loader
  880. Pascal
  881. Basic
  882. Occam
  883. Modula-2
  884. 6800 Bare 6800 6800 Assembler only
  885. 6805 Bare 6805 6805 Assembler only
  886. 6809 Bare 6809 6809 Assembler only
  887. ns Bare NS16032 4/4 C ns
  888. Pascal
  889. Basic
  890. Occam
  891. Modula-2
  892. i80 Hermac/z80 2/2 C i80
  893. Pascal
  894. Basic
  895. Occam
  896. Modula-2
  897. z80 Hermac/z80 2/2 C z80 \fIi80\fP is faster
  898. Pascal
  899. Basic
  900. Occam
  901. Modula-2
  902. s2650 Signetics 2650 s2650 Assembler only
  903. .TE
  904. .PP
  905. The commands \fBem22\fP, \fBem24\fP and \fBem44\fP
  906. produce e.out files with EM machine code which must be interpreted.
  907. The Kit contains three interpreters: one running under PDP 11/V7 UNIX,
  908. one for the M68000, running under the PMDS system, SUN systems,
  909. the Mantra system, etc, and one, written in C and running on large machines.
  910. The first one can only interpret 2/2 e.out files,
  911. the second takes 2/4 and 4/4 files,
  912. and the last one takes 2/2, 2/4 and 4/4.
  913. The PDP 11 interpreter executes floating point instructions.
  914. The interpreter for the M68000 traps if you try to use floating point.
  915. .LP
  916. The program \fBem\fP in the bin directory calls the appropriate
  917. interpreter.
  918. The interpreters are sought in the em22, em24 and em44
  919. subdirectories of lib.
  920. The third interpreter is available on large machines as the program \fIint\fP
  921. in the bin directory.
  922. .NH
  923. Compilation on a different machine.
  924. .PP
  925. The Kit be installed and used as a cross-compiler
  926. for C and Basic programs on any UNIX machine.
  927. The presence of most UNIX utilities is essential for compilation.
  928. A few of the programs you certainly need are: C-compiler, Yacc, sed,
  929. make and lex.
  930. Except for the Pascal compiler proper all programs
  931. can be translated on a normal UNIX system, like V7, BSD4.1.
  932. .NH 2
  933. Backend
  934. .PP
  935. The existence of a backend with a system call library
  936. for your system is essential
  937. if you wish to produce executable files for that system.
  938. Rewriting the system call library if the one supplied does
  939. not work on your system is fairly straightforward.
  940. If no backend exists for your CPU type you have to write one yourself
  941. which is a major undertaking.
  942. .NH 2
  943. Pascal
  944. .PP
  945. When you can produce executable code it is also possible to boot the Pascal
  946. Compiler,
  947. which is written in Pascal itself.
  948. The Kit contains the compact code files for the 2/2, 4/4 and 2/4
  949. versions of the Pascal compiler.
  950. The Makefile automatically tries to boot the Pascal compiler
  951. from one of these compact code files, if the compiler proves
  952. unable to compile itself.
  953. .NH 2
  954. Universal assembler/loader, link editor
  955. .PP
  956. The native assemblers and loaders are used on PDP-11 and VAX.
  957. The description files in lib/*/descr for other systems use our
  958. universal assembler and for most machines our link editor.
  959. The load file produced is not directly
  960. usable in any system known to us,
  961. but has to be converted before it can be put to use.
  962. The \fIcv\fP programs convert our a.out format into
  963. executable files.
  964. The \fIdl\fP programs present for some machines unravel
  965. our a.out files and transmit commands to load memory
  966. to a microprocessor over a serial line.
  967. The file man/ack.out.5 contains a description of the format of
  968. the universal assembler load file.
  969. It might be useful to those who wish or need to write their
  970. own conversion programs.
  971. Also, a module is included to read and write our a.out format.
  972. See modules/man/object.3.
  973. .NH 2
  974. Compiling libraries
  975. .PP
  976. The Kit contains sources for part II and III of the C-library.
  977. These files can be used to make libraries for the Ack C-compiler.
  978. The recompilation process uses a few include files.
  979. The include directory in the EM home directory contains the include files
  980. it needs.
  981. An effort has been made to make the part III stuff as system independent as
  982. possible.
  983. .NH
  984. Options
  985. .NH 2
  986. Default machine
  987. .PP
  988. There is one important option in h/local.h.
  989. The utility \fIack\fP uses a default machine name when called
  990. as \fIacc\fP, \fIcc\fP, \fIabc\fP, \fIapc\fP, \fIpc\fP, \fIocm\fP,
  991. \fIm2\fP, or \fIack\fP.
  992. The machine name used for default is determined by the
  993. definition of ACKM in h/local.h.
  994. The Kit is distributed with "vax4" as the default machine,
  995. but the shell script "first" in the directory "first" alters this
  996. to suit your own system.
  997. There is nothing against using the Kit as a cross-compiler
  998. and by default produce code that can't run on your own system.
  999. But...., you have to alter the Makefile for the Pascal frontend
  1000. in that case.
  1001. That Makefile assumes that calling \fBapc\fP and \fBacc\fP will
  1002. produce a.out's that can run on your own system.
  1003. Change the definitions of ACC and APC in that Makefile according to your
  1004. needs.
  1005. .NH 2
  1006. Pathnames
  1007. .PP
  1008. Absolute pathnames are concentrated in "h/em_path.h".
  1009. Only the Pascal runtime system and the utilities \fIack\fP and \fILLgen\fP use
  1010. absolute pathnames to access files in the Kit.
  1011. The tree is distributed with /usr/em as the working
  1012. directory.
  1013. The definition of EM_DIR in em_path.h should be altered to
  1014. specify the root
  1015. directory for the Compiler Kit distribution on your system.
  1016. This is done automatically the the shell script "first" in the
  1017. directory "first".
  1018. Em_path.h also specifies which directory should be used for
  1019. temporary files.
  1020. Most programs from the Kit do indeed use that directory
  1021. although some remain stubborn and use /tmp or /usr/tmp.
  1022. .LP
  1023. The shape of the tree should not be altered lightly because
  1024. most Makefiles and the
  1025. utility \fIack\fP know the shape of the ACK tree.
  1026. All pathnames in all Makefiles are relative, that is do not
  1027. have "/" as the first character.
  1028. The knowledge of the utility \fIack\fP about the shape of the tree is
  1029. concentrated in the files in the directory lib/*/descr and lib/descr/*.
  1030. .NH
  1031. Makefiles
  1032. .PP
  1033. Most directories contain a "Makefile".
  1034. Apart from commands applying to that specific directory these
  1035. files all recognize a few special commands.
  1036. When called with one of these they will apply the command to
  1037. their own directory and all subdirectories.
  1038. The special commands are:
  1039. .sp 1
  1040. .IP "install" 20
  1041. recompile and install all binaries and libraries.
  1042. .br
  1043. Some Makefiles allow errors to occur in the programs they call.
  1044. They ignore such errors and notify the user with the message
  1045. "~....... error code n: ignored".
  1046. Whenever such a message appears in the output you can ignore it
  1047. too.
  1048. .IP "cmp"
  1049. recompile all binaries and libraries and compare them to the
  1050. ones already installed.
  1051. .IP pr
  1052. print the sources and documentation on the standard output.
  1053. .IP opr
  1054. make pr | opr
  1055. .br
  1056. Opr should be an off-line printer daemon.
  1057. On some systems it exists under another name e.g. lpr.
  1058. The easiest way to call such a spooler is using a shell script
  1059. with the name opr that calls lpr.
  1060. This script should be placed in /usr/bin or EM_DIR/bin or
  1061. one of the directories in your PATH.
  1062. .IP clean
  1063. remove all files not needed for day-to-day use,
  1064. that is binaries not in bin or lib, object files etc.
  1065. .LP
  1066. Example:
  1067. .nf
  1068. .sp 1
  1069. make install
  1070. .sp 1
  1071. .fi
  1072. given as command in the home directory will cause
  1073. compilation of all programs in the directory and copying of the results
  1074. to the bin and lib directories.
  1075. .NH
  1076. Fixes for the UNIX V7 system
  1077. .PP
  1078. UNIX System V7 has a few bugs that prevent a part of or the whole Kit
  1079. from working properly. Berkeley 2.8 and/or 2.9 may also suffer from this
  1080. problem.
  1081. To be honest, we do not know which of the following changes are
  1082. essential to the functioning of our Kit. The change to "ld" is.
  1083. .PP
  1084. The file "doc/v7bugs.doc" gives for each of the following bugs
  1085. a small test program and a diff listing of the source files that have to be
  1086. modified.
  1087. .IP 1
  1088. Bug in the C optimizer for unsigned comparison
  1089. .nr PD 0
  1090. .IP 2
  1091. The loader 'ld' fails for large data and text portions
  1092. .IP 3
  1093. Floating point registers are not saved if more memory is needed.
  1094. .IP 4
  1095. Floating point registers are not copied to child in fork().
  1096. .nr PD 1v
  1097. .LP
  1098. Use the test programs to see if the errors are present in your system
  1099. and to check if the modifications are effective.
  1100. .PP
  1101. You may also have to change /usr/src/cmd/cc.c (/bin/cc) to pass the
  1102. .B -i
  1103. flag to
  1104. .I ld.
  1105. Also, /usr/src/cmd/ld.c (/bin/ld) may have to be changed to increase the
  1106. number of library positions it can hold.
  1107. On our (2.9 BSD) version, this is the constant
  1108. .I NROUT.
  1109. It must be at least 400.
  1110. This may require separate I&D.
  1111. Also, our version does not check that the table does not overflow.
  1112. .NH
  1113. Testing
  1114. .PP
  1115. Test sets are available in Pascal, C, Basic and EM assembly.
  1116. .IP em 8
  1117. .br
  1118. The directory emtest contains a few EM test programs.
  1119. The EM assembly files in these tests must be transformed into
  1120. load files.
  1121. These tests use the LIN and NOP instructions to mark the passing of each
  1122. test.
  1123. The NOP instruction prints the current line number during the
  1124. test phase.
  1125. Each test notifies its correctness by calling LIN with a unique
  1126. number followed by a NOP which prints this line number.
  1127. The test finishes normally with 0 as the last number printed
  1128. In all other cases a bug showed its
  1129. existence.
  1130. .IP Pascal
  1131. .br
  1132. The directory lang/pc/test contains a few Pascal test programs.
  1133. All these programs print the number of errors found and a
  1134. identification of these errors.
  1135. .sp 1
  1136. .ti +4
  1137. We also tested Pascal with the Validation Suite.
  1138. The Validation Suite is a collection of more than 200 Pascal programs,
  1139. designed by Brian Wichmann and Arthur Sale to test Pascal compilers.
  1140. We are not allowed to distribute it, but you may
  1141. request a copy from
  1142. .DS
  1143. Richard J. Cichelli
  1144. A.N.P.A.
  1145. 1350 Sullivan Trail
  1146. P.O. Box 598
  1147. Easton, Pennsylvania 18042
  1148. USA
  1149. .DE
  1150. .IP C
  1151. .br
  1152. The sub-directories in lang/cem/ctest contain C test programs.
  1153. The idea behind these tests is:
  1154. when you have a program called xx.c, compile it into xx.cem.
  1155. Run it with standard output to xx.cem.r, compare this file to
  1156. xx.cem.g, a file containing the 'ideal' output.
  1157. Any differences will point to implementation differences or
  1158. bugs.
  1159. Giving the command "run gen" or plain "run" starts this
  1160. process.
  1161. The differences will be presented on standard output.
  1162. The contents of the result files depend on the wordsize,
  1163. the xx.cem.g files on the distribution are intended for a
  1164. 32-bit machine.
  1165. .IP Basic
  1166. .br
  1167. The directory lang/basic/test contains some forty basic programs.
  1168. Not all of these programs are correct, some have syntactic errors,
  1169. some simply don't work.
  1170. The Makefile in that directory attempts to compile and run
  1171. these tests.
  1172. If it compiles its output is compared to a file with suffix .g
  1173. which contains the output to be expected.
  1174. The make should be started with its standard input diverted
  1175. to /dev/null.
  1176. An example of the output of a make is present in the file Out.std.
  1177. .NH
  1178. Documentation
  1179. .PP
  1180. Manual pages for Amsterdam Compiler Kit can be copied
  1181. to "/usr/man/man?" by the
  1182. following commands:
  1183. .DS
  1184. cd man
  1185. make install
  1186. .DE
  1187. but do this \fBafter\fR compiling the Kit.
  1188. .LP
  1189. Several documents are provided:
  1190. .TS
  1191. l l.
  1192. doc/toolkit.doc general overview (CACM article)
  1193. doc/em description of the EM machine architecture
  1194. doc/ack.doc format of machine description files (lib/*/descr)
  1195. doc/basic.doc Basic reference manual
  1196. doc/pcref.doc Pascal-frontend reference manual
  1197. doc/val.doc results of running the Pascal Validation Suite
  1198. doc/crefman.doc C-frontend description
  1199. doc/LLgen description of the LL(1) parser generator
  1200. doc/peep.doc internal documentation for the peephole optimizer
  1201. doc/cg.doc documentation for backend writers and maintainers
  1202. doc/regadd.doc addendum to previous document describing register variables
  1203. doc/ncg.doc documentation for the newest backends
  1204. doc/v7bugs.doc bugs in the V7 system and how to fix them
  1205. doc/6500.doc MSC 6500 backend description
  1206. doc/i80.doc Intel 8080 backend description
  1207. doc/z80.doc Zilog Z80 backend description
  1208. doc/m68020.doc Motorola M68000/M68020 backend description
  1209. doc/occam Occam-frontend description
  1210. doc/ego Global Optimizer description
  1211. doc/top Target Optimizer description
  1212. doc/int description of the EM interpreter written in C
  1213. doc/ceg documentation for code-expander writers and maintainers
  1214. doc/m2ref.doc Modula-2 frontend description
  1215. doc/install.doc this document
  1216. doc/install.pr this document (formatted)
  1217. .TE
  1218. .PP
  1219. The names in this list without a suffix are in fact a subdirectory.
  1220. Use the Makefile to get readable copies.
  1221. .LP
  1222. Good luck.