QBE as an easy-to-embed library
https://c9x.me/git/qbe.git
There are two things I overlooked so far. 1. Binary instructions like cmp that do not have a result in registers need the size suffix sometimes, for example when comparing a spill location with a constant. 2. The register allocator needs to be adapted to support the comparison instruction: it is not possible to compare two spill locations without using a register. |
||
---|---|---|
lisc | ||
proto |