A B Compiler targeting x86_64-linux based on Ken Thompson's manual.
Warning
Compiler is not fully implemented yet, maybe it never will be.
The aim of this compiler is to compile the examples given in the manual, nothing more.
Working examples:
- 9.1 (libb/libb2.b)
- 9.2 (examples/e-2.b)
- 9.3 (libb/libb2.b)
make
b/b examples/hw.b
as -o b.out.o b.out.s
ld -o hw libb/brt1.o b.out.o libb/libb.a
./hwRun make debug then
b/b examples/hw.bto get a lot of debug information.
make checkIf you want to add a new test, modify test/test.shs tests list by adding the name of the test file without the extension, then
./test.sh gen.