News for hackers. Stuff that matters.
Re:TinyCompiler: A compiler in a week-end by sylware on Friday February 21, 2025 @07:36AM (#43126776)
Missing RISC-V code generation.

But it is written in plain and simple C99, so it is at least much less toxic than LLVM.

I wonder how cparser (did not check if it was plain and simple C)+libfirm compare in performance to cproc+QBE on my benchmarks. May have to take some time to check that.

Whatever the results, it is always good to have, again, a real life alternative for optimizing C toolchains.

The main issues are the heavy usage of gcc extensions by linux (and glibc, etc).

Re:TinyCompiler: A compiler in a week-end by sitkack on Friday February 21, 2025 @11:15AM (#43129254)
Haven't used it, but this looks rather complete https://github.com/libfirm/libfirm/tree/master/ir/be/riscv
Re:TinyCompiler: A compiler in a week-end by sylware on Friday February 21, 2025 @04:54PM (#43133528)
Oh... What I read did not mention that many backends. Don't read the doc, read the code... :(

Definitely worth some benchmarks, until libfirm SDK is reasonable: there is a bad start with cmake (c++) and I have no idea if it requires expensive dependencies (even if those are written in plain and simple C).