-
Notifications
You must be signed in to change notification settings - Fork 441
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
Comments
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. |
@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. |
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 <[email protected]>
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.
The text was updated successfully, but these errors were encountered: