Skip to content

Lumi-Compiler v0.2.0

Latest

Choose a tag to compare

@github-actions github-actions released this 20 Nov 18:37
· 7 commits to main since this release
v0.2.0
f996ab6

Install

macOS on Apple silicon:

curl -fsSL https://github.com/IzonIcy/LumiComp/releases/download/v0.2.0/C-Compiler-0.2.0-aarch64-apple-darwin.tar.gz | tar xz -C /tmp && sudo install -m 755 /tmp/C-Compiler-0.2.0-aarch64-apple-darwin/C-Compiler /usr/local/bin/C-Compiler

Linux on x86_64:

curl -fsSL https://github.com/IzonIcy/LumiComp/releases/download/v0.2.0/C-Compiler-0.2.0-x86_64-unknown-linux-gnu.tar.gz | tar xz -C /tmp && sudo install -m 755 /tmp/C-Compiler-0.2.0-x86_64-unknown-linux-gnu/C-Compiler /usr/local/bin/C-Compiler

Then compile a program all the way to a running binary:

C-Compiler build examples/asm_hello.c hello && ./hello

What this release adds

An x86-64 assembly backend in src/ccompiler/x86.c, a build subcommand that assembles and links with the system cc, five example programs wired into make test that run their own binaries and diff stdout, and scripts/demo.sh. The textual IR and every golden file are unchanged.

The backend does not support structs, local arrays, single-precision floats, sizeof, or more than six integer call arguments yet. Each is a located diagnostic, not silence.


Full Changelog: v0.1.0...v0.2.0

Full Changelog: v0.1.0...v0.2.0