-
Notifications
You must be signed in to change notification settings - Fork 56
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
Zig codegen #448
Comments
I started working on an arocc version of translate-c. It doesn't look too bad; just a fair bit of time. I have a feeling that I have yet to generate any zig code, so if this is an inspiring problem for you, go nuts. |
I might pick this up. Do you have a branch I can start on @TwoClocks ? Thank you! |
Here is my feeble branch: It should compile w/ a recent I added aro as a module to zig. The path is relative but hard-coded in build.zig. Around line 180. Obviously not a long-term solution.... I basically just added a new To me, both ATSs are confusing to a casual observer. |
@MarcoPolo I'm not sure if you've decided to take this on. I started a new repro which does translate var decls, and "just" needs to be filled out. You can check it out here: |
I was thinking the same thing. I haven’t started anything. I’ll try to take a look at your repo |
The reason for the special AST is that the Zig AST assumes tokens to be in a certain order that they'd appear in actual source files making it difficult to generate correctly during translation. Unless you're interested in continuing your project I'll start working on getting Aro translate-c to a contributor friendly state. |
Please. I'll port whatever I've added recently. |
I'm going to have some free time as the summer ends. I'd like to pick this up again. Did you start a new project somewhere? |
I started working on it in https://github.com/Vexu/zig/tree/aro-translate-c but paused to wait for 0.11.0 since there were a lot of breaking changes at the time. |
Perhaps this issue should be closed now that aro-based translate-c work is taking place in the main Zig repo? |
Coming from ziglang/zig#14068
How hard is it to port current
zig translate-c
to be arocc's Zig codegen backend?The text was updated successfully, but these errors were encountered: