Skip to content

Releases

Lumi-Compiler v0.2.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 18:37
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

Lumi-Compiler v0.1.0

Choose a tag to compare

@github-actions github-actions released this 20 Nov 17:58
v0.1.0
bc410ed

Install

macOS on Apple silicon:

curl -fsSL https://github.com/IzonIcy/LumiComp/releases/download/v0.1.0/C-Compiler-0.1.0-aarch64-apple-darwin.tar.gz | tar xz -C /tmp && sudo install -m 755 /tmp/C-Compiler-0.1.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.1.0/C-Compiler-0.1.0-x86_64-unknown-linux-gnu.tar.gz | tar xz -C /tmp && sudo install -m 755 /tmp/C-Compiler-0.1.0-x86_64-unknown-linux-gnu/C-Compiler /usr/local/bin/C-Compiler

Each tarball has a companion SHA256SUMS file. Verify before you run:

curl -fsSLO https://github.com/IzonIcy/LumiComp/releases/download/v0.1.0/SHA256SUMS-v0.1.0-x86_64-unknown-linux-gnu.txt && shasum -a 256 -c SHA256SUMS-v0.1.0-x86_64-unknown-linux-gnu.txt

Then:

C-Compiler check examples/feature_showcase.c
C-Compiler codegen examples/feature_showcase.c

What's Changed

  • point README links at the actual repo by @IzonIcy in #1
  • fix statement nesting overflow and 0b literal folding UB by @IzonIcy in #2

New Contributors

Full Changelog: https://github.com/IzonIcy/LumiComp/commits/v0.1.0

What's Changed

  • point README links at the actual repo by @IzonIcy in #1
  • fix statement nesting overflow and 0b literal folding UB by @IzonIcy in #2

New Contributors

Full Changelog: https://github.com/IzonIcy/LumiComp/commits/v0.1.0