Skip to content

g0mb4/abc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

82 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ABC

A B Compiler targeting x86_64-linux based on Ken Thompson's manual.

Warning

Compiler is not fully implemented yet, maybe it will 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)

Quickstart

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
./hw

Debug

Run make debug then

b/b examples/hw.b

to get a lot of debug information.

Tests

make check

If 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.

About

A B Compiler targeting x86_64-linux.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published