QBE is really interesting, but for people like me who still use 32 bit architectures unfortunately a bit limited. Someone recently pointed me to the Eigen compiler kit (see e.g. https://github.com/EigenCompilerSuite/ ) which - like QBE - is a lean alternative to LLVM, but supports much more architectures than QBE, even some 16 bit ones; since last week also Xtensa (ESP32) is officially supported. It's still beyond me…
Out of curiosity, why are you still using 32-bit architectures?
QBE – Compiler Back End
31–38 of 38 posts
Re: QBE – Compiler Back End
#32Any chance of making QBE available as a library? Even something as simple as pass an IR string get the corresponding function would be really nice.
If I recall correctly, the author has no interest in re-architecturing qbe like this.
Re: QBE – Compiler Back End
#33QBE is really interesting, but for people like me who still use 32 bit architectures unfortunately a bit limited. Someone recently pointed me to the Eigen compiler kit (see e.g. https://github.com/EigenCompilerSuite/ ) which - like QBE - is a lean alternative to LLVM, but supports much more architectures than QBE, even some 16 bit ones; since last week also Xtensa (ESP32) is officially supported. It's still beyond me…
Out of curiosity, why are you still using 32-bit architectures?
Re: QBE – Compiler Back End
#34QBE is really interesting, but for people like me who still use 32 bit architectures unfortunately a bit limited. Someone recently pointed me to the Eigen compiler kit (see e.g. https://github.com/EigenCompilerSuite/ ) which - like QBE - is a lean alternative to LLVM, but supports much more architectures than QBE, even some 16 bit ones; since last week also Xtensa (ESP32) is officially supported. It's still beyond me…
Out of curiosity, why are you still using 32-bit architectures?
Given that software is always too big, this can often be a product-making distinction.
Re: QBE – Compiler Back End
#35QBE is really interesting, but for people like me who still use 32 bit architectures unfortunately a bit limited. Someone recently pointed me to the Eigen compiler kit (see e.g. https://github.com/EigenCompilerSuite/ ) which - like QBE - is a lean alternative to LLVM, but supports much more architectures than QBE, even some 16 bit ones; since last week also Xtensa (ESP32) is officially supported. It's still beyond me…
Out of curiosity, why are you still using 32-bit architectures?
They are cheaper because they use less area, and they're also more memory efficient because pointers are all half as big. On these CPUs you don't have 4GB of RAM so you don't need a big address space.
Re: QBE – Compiler Back End
#36Any chance of making QBE available as a library? Even something as simple as pass an IR string get the corresponding function would be really nice.
I was disappointed by its architecture too. You must write intermediary files, you must call qbe as a separate binary, and you must write the resultant objects to disk. If I recall correctly, the author has no interest in re-architecturing qbe like this.
Re: QBE – Compiler Back End
#37An intersting idea, but like, if your idea of hackable is dense c code with no comments and short names, it definitely differs from mine! see, e.g,. https://c9x.me/git/qbe.git/tree/ssa.c
if (!n) {
/* uh, oh, warn */
return UNDEF;Re: QBE – Compiler Back End
#38QBE is really interesting, but for people like me who still use 32 bit architectures unfortunately a bit limited. Someone recently pointed me to the Eigen compiler kit (see e.g. https://github.com/EigenCompilerSuite/ ) which - like QBE - is a lean alternative to LLVM, but supports much more architectures than QBE, even some 16 bit ones; since last week also Xtensa (ESP32) is officially supported. It's still beyond me…