2014-10-23 17:54:06 +02:00
|
|
|
obcpl (BCPL compiler)
|
|
|
|
|
|
|
|
This is an x86 (IA-32) port of the "classic" old BCPL compiler (around
|
|
|
|
1980) from the Tripos Research Group at Cambridge University.
|
|
|
|
|
2020-10-13 06:48:17 +02:00
|
|
|
As a real, working computer language implementation, that can be
|
|
|
|
studied, modified, and played with, this old BCPL compiler has a good
|
|
|
|
deal to recommend it. The compiler frontend consists of only about
|
|
|
|
2000 lines of BCPL code, and (as supplied here) compiles to a static
|
|
|
|
(fully-linked) x86 binary that is less than 36000 bytes in size.
|
2014-10-23 17:54:06 +02:00
|
|
|
|
|
|
|
x86_64 note: obcpl doesn't require multilib on Slackware64. It only
|
2020-10-13 06:48:17 +02:00
|
|
|
generates 32-bit x86 code, but the binaries it creates are 100%
|
|
|
|
statically linked, and will run fine on Slackware64 without multlib.
|
2021-09-06 20:21:04 +02:00
|
|
|
|
|
|
|
The package includes:
|
|
|
|
|
|
|
|
- The BCPL compiler itself (/usr/bin/obcpl and the support files in
|
|
|
|
/usr/lib(64)?/obcpl)
|
|
|
|
- The utilities:
|
|
|
|
- obcpl-cmpltest: compiler test
|
|
|
|
- obcpl-gpm: macro generator
|
|
|
|
- obcpl-xref: cross referencer
|
|
|
|
- The sources for the utilities
|
|
|
|
- Example code (Hello World and a factorial calculator)
|
|
|
|
- The obcpl documentation, including manual.txt and standard.txt
|
|
|
|
|
|
|
|
See also:
|
|
|
|
|
|
|
|
https://en.wikipedia.org/wiki/BCPL
|
|
|
|
https://www.cl.cam.ac.uk/~mr10/bcplman.pdf
|