Hasty Briefsbeta

Bilingual

QBE – Compiler Back End

21 hours ago
  • #backend
  • #compiler
  • #programming
  • QBE is a compiler backend that aims to deliver 70% of the performance of industrial optimizing compilers while using only 10% of the code, supporting language innovation.
  • It maintains a hobby-scale C codebase that is easy to hack on, provides optimizations with good impact/weight ratio, and fully implements the C ABI for seamless integration with C.
  • QBE can target amd64 (Linux and OSX), arm64, and riscv64, and includes an example program demonstrating function definition, arithmetic, and calling C functions.
  • The example shows how to compile a QBE intermediate language file into an executable using 'qbe -o out.s file.ssa && cc out.s', relying on the local libc for output.