Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for compiling QBE #58

Open
notgull opened this issue Oct 27, 2024 · 2 comments
Open

Add support for compiling QBE #58

notgull opened this issue Oct 27, 2024 · 2 comments

Comments

@notgull
Copy link

notgull commented Oct 27, 2024

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
Copy link
Author

notgull commented Oct 27, 2024

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

@stikonas
Copy link
Collaborator

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants