I've managed to build an Amiga BCPL executable which seems to (at least partly) work!
I built it on NetBSD/amiga. Doing
make bcpl.ld builds the executable.
Code:
https://www.media!fire.com/file/f8k7dzhroc125st/bcpl_dir_built2.tar.gz
I tried running the Amiga executable like this:
bcpl.ld FROM blib.b TO output.o
That seemed to work, but I didn't test it any more than that.
Some notes:
- Do
Protect bcpl.ld +E to set the E protection bit otherwise the Amiga shell refuses to run it.
- fpsim.asm isn't used so you could delete that.
- If you download an Amiga make program, you could try having the Amiga BCPL compiler build itself. That would be a good test. (Or just write an AmigaDOS script to compile and link all files.)