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

Have a version of LCC retargetable to C99 #47

Open
amyipdev opened this issue Aug 14, 2021 · 2 comments
Open

Have a version of LCC retargetable to C99 #47

amyipdev opened this issue Aug 14, 2021 · 2 comments

Comments

@amyipdev
Copy link
Contributor

Other compilers allow for switching between C89 and C99 - for example, GCC. To maintain compilation compatibility with other programs, LCC should have a C99 mode as well.

@lassehp
Copy link

lassehp commented Sep 4, 2022

At this point, with the most recent standard being C18 as defined in ISO 9899:2018 and C23 ISO 9899:2023 being very close, it would be nice if the documentation noted somewhere more prominently what exactly is meant by "ANSI C". Is it C89, C99, C11, C18? On closer inspection I suspect it is C89, and while that can still be useful, it is quite antique.

@amyipdev
Copy link
Contributor Author

@lassehp it's already been defined somewhere (I don't know where) that it is C89. A lot of projects, such as the movfuscator, depend on this. In fact, I opened this issue because of movfuscator. Based on the publication date of the book, this should be obvious, although I think it could definitely be clarified more. I'm gonna make a quick PR adding that to the README and hope devs approve.

amyipdev added a commit to amyipdev/lcc that referenced this issue Sep 12, 2022
The README does not currently state that LCC is a C89 compiler. While this can be inferred based on the book's publication date of 1995, it causes much confusion (see drh#47). This patch adds a blurb to the README informing users that it is a C89 compiler; a warning to not run C99 should hopefully not be necessary.

Signed-off-by: Amy Parker <apark0006@student.cerritos.edu>
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