-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Additional backend to generate C code #3772
Comments
I see it as one of many desirable targets. It's not provided by LLVM so this would be something provided by an alternate backend. |
There is one by the Julia team (resurrected llvm C backend) but not very usable on a work basis, and it's tied to llvm, which I don't see as a good solution. |
I don't think this project is startable yet; there are too many unfinished prerequisites.
|
Ok I will be patient then, thank you for enlightenment and quick answers 👌 |
The closer the output is to human readable C, the better. For me it's like an insurance policy for the bus factor problem. The llvm to C translators aren't the best from that perspective. |
Duplicate of #5107, closing |
Thanks - I had forgotten about this one. Let's keep the earlier one. |
One note here is that once we are shipping self-hosted as the main zig compiler, we can remove LLVM from the bootstrapping process by having the stage1 zig compiler emit C code rather than LLVM IR. That is a separate issue however, since this issue is for self-hosted. |
This is now part of stage2 via the |
Thanks for thinking about embedded systems. |
I would like to known the position of the zig team on a C backend in addition to LLVM.
I known that not a lot of people will need such a backend, it's a very specific need which mostly target embedded system using custom architecture and C compiler. It's still the only missing step to stuck out from C, which would be very cool 👍
Thank you and keep the good work
The text was updated successfully, but these errors were encountered: