Repository navigation
Releases
Lumi-Compiler v0.2.0
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-CompilerLinux 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-CompilerThen compile a program all the way to a running binary:
C-Compiler build examples/asm_hello.c hello && ./helloWhat 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
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-CompilerLinux 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-CompilerEach 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.txtThen:
C-Compiler check examples/feature_showcase.c
C-Compiler codegen examples/feature_showcase.cWhat'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