Files
zig/README.md
2026-02-10 10:03:44 +00:00

652 B

zig0 aspires to be an interpreter of zig 0.14.0 C backend.

Testing

Where the following $CC are supported: clang, gcc and tcc. Then:

zig build test -Dcc=$CC

Static analysis:

zig build fmt lint

Debugging tips

Test runs infinitely? Build the test program executable:

$ zig build test -Dno-exec

And then run it, capturing the stack trace:

gdb -batch
-ex "python import threading; threading.Timer(1.0, lambda: gdb.post_event(lambda: gdb.execute('interrupt'))).start()"
-ex run
-ex "bt full"
-ex quit
zig-out/bin/test

You are welcome to replace -ex "bt full" with anything other of interest.