From b17115dd80aec5896a60e4f9d16ce91a9820b517 Mon Sep 17 00:00:00 2001 From: nealcrook Date: Tue, 22 Nov 2016 09:51:20 +0000 Subject: [PATCH] Mistakenly made a branch from my BCPL work instead of from master. Unwind the bcpl stuff from here. Revert "expand the instructions for using the original bcpl kit files. Add" This reverts commit 8934c001c5f9a270c08a6516e3da2e2a3b4f3d9e. --- Applications/BCPL/README | 84 +++++++--------------------------------- 1 file changed, 13 insertions(+), 71 deletions(-) diff --git a/Applications/BCPL/README b/Applications/BCPL/README index cb406c39..76709366 100644 --- a/Applications/BCPL/README +++ b/Applications/BCPL/README @@ -19,93 +19,36 @@ variables for some of the key pointers so SDCC makes them register pairs would help no end. -Files ------ - -The following files are required from the BCPL kit: - -LIBHDR - header file for access to "standard library" -SYNHDR - header file for syn.b (constants etc.) -TRNHDR - header file for trn.b (constants etc.) -CGHDR - header file for cg.b (constants etc.) - -OPTIONS - options file read by the compiler - -syn.b - BCPL source code for the syntax analyser -trn.b - BCPL source code for the translator -cg.b - BCPL source code for the code generator - -syn.i - INTCODE for syn. Can be regenerated from syn.b but you need this in order to bootstrap -trn.i - INTCODE for trn. Can be regenerated from trn.b but you need this in order to bootstrap -cg.i - INTCODE for cg. Can be regenerated from cg.b but you need this in order to bootstrap -iclib.i - INTCODE for the linkages between the BCPL run-time environment and the INTCODE world. - Probably originally hand-generated. - - How To Use ---------- The BCPL compiler produces OCODE in a file called OCODE. The cg code generator turns this into INTCODE which is a sort of assemblerish thing. -The programs icint and icintv are INTCODE interpreters implemented in C. - There is no linker. Just cat the INTCODE files together in any order, the BCPL globals do all the magic! -The BCPL kit comes with the BCPL (.b) files and the compiled INTCODE .i -files for the compiler itself. So you can can do this: - -$ cat blib16.i iclib.i > run-time.i -$ cat cg.i run-time.i > codegen.i -$ cat syn.i trn.i run-time.i > b.i +The BCPL kit comes with the BCPL (.b) files and the compiled intcode .i +files for the compiler itself. So you can can -blib16.i acts as a very simple "standard library" and iclib.i provides the -definitions that act as the linkage between BCPL and the run-time environment. +cat cg.i blib16.i iclib.i > codegen.i +cat syn.i trn.i blib16.i iclib.i > b.i -Now you can do this: +Now you can do -$ icint b.i file.i -$ icint file.i +icint b.i