bewing0 / qcc

A superfast C compiler inspired by TinyCC
BSD 2-Clause "Simplified" License
15 stars 2 forks source link

sljit #1

Open kagiannis opened 9 years ago

kagiannis commented 9 years ago

qcc is going to use tcg.Have a look at sljit. It seems a good candidate. http://sljit.sourceforge.net/

bewing0 commented 9 years ago

Thanks for the tip. I will certainly look into sljit, and try to see if it will be a better fit into qcc.

This compiler basically needs some kind of "compiler intermediate language." TCG was tentatively selected because: 1) its "TCG frontend language" seems like it would make a fairly simple (but somewhat deficient) CIL, 2) a half dozen TCG backends are already built inside QEMU, which output semi-optimized machine language for all the most crucial CPUs, 3) those TCG backends are all extremely well tested and supported.

There certainly may be better choices than TCG out there. It only depends on the strengths and weaknesses of the package. We will see.