M2-Planet icon indicating copy to clipboard operation
M2-Planet copied to clipboard

Add support for compiling QBE

Open notgull opened this issue 1 year ago • 2 comments

QBE is a compiler backend that aims to be simple to implement and simple to use. With cproc it is self-hosting. It would be nice if M2-Planet could compile QBE, since it would be a step towards using M2-Planet to compile Dozer (ref: https://codeberg.org/notgull/dozer/issues/8).

At the moment it fails with this error:

$ ./bin/M2-Planet -f ~/Projects/c9x/qbe/all.h 
/home/jtnunley/Projects/c9x/qbe/all.h:11:ERROR in typedef statement
Missing ;

notgull avatar Oct 27 '24 18:10 notgull

Ah, it looks like M2-Planet doesn't support unsigned char et al.

notgull avatar Oct 27 '24 19:10 notgull

Ah, it looks like M2-Planet doesn't support unsigned char et al.

And now it should support multi token types (including unsigned chat)

stikonas avatar Feb 23 '25 18:02 stikonas