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

Expand C frontend to support full compilation of ANSI C standard #1146

Open
andrew-johnson-4 opened this issue Jan 23, 2025 · 5 comments
Open
Assignees

Comments

@andrew-johnson-4
Copy link
Owner

This would need a full rewrite of the C frontend, which is probably necessary anyways.

@andrew-johnson-4 andrew-johnson-4 pinned this issue Jan 23, 2025
@andrew-johnson-4 andrew-johnson-4 self-assigned this Jan 23, 2025
@andrew-johnson-4
Copy link
Owner Author

Parse __attribute__ and add to type signatures instead of ignoring.

@alex-s168
Copy link
Contributor

It would be cool if it supported a similar amount of ISO C99 features as TCC.
Also it would be extremly awesome if I could extend it to support OpenCL C 1.2 (which is ISO C99 - some features + extensions) because I want to make a custom OpenCL implementation for a few projects.

@andrew-johnson-4
Copy link
Owner Author

Sure. As long as the standards don't contradict each other. This is not a conservative frontend.

@alex-s168
Copy link
Contributor

I don't want to sound too needy, but a usable C frontend and integration with my compiler backend is important to me because I need it for many of my projects. I will do the integration with my compiler backend myself, but I am too inexperienced at making frontends, so it would be awesome if the C frontend would be high priority...

@andrew-johnson-4
Copy link
Owner Author

I think the Core is working well enough to work on this some more. I am not sure that it will be perfect coming right off the block, but there are a lot of things that I can improve on. I have some work coming in that I need to clear out, but I'll make this high priority for when I can get to it.

  • extend C parser to grab full expressions
  • extend C parser to grab edge cases such as multiple declarations
  • etc. until a test suite of ANSI C starts passing

This was referenced Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants