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

Add README blurb regarding C89 #50

Merged
merged 1 commit into from
Jun 17, 2024
Merged

Add README blurb regarding C89 #50

merged 1 commit into from
Jun 17, 2024

Conversation

amyipdev
Copy link
Contributor

Regards #47.

The issue was raised that LCC does not make it obvious that it is a C89 compiler. This occasionally causes problems for developers; for example, the movfuscator project uses LCC and has to warn its users to not attempt to use C99+ code. To make it clearer to developers, the README should state that LCC works only with C89.

This is not a resolution of the issue; being able to change the input target to C99 would be wonderful. However, it is a necessary change for now.

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>
@andi8086
Copy link

The book "A retargetable compiler" clearly stated it to be for ANSI C right after K&R. However you are right in that it is hard to see if one does not read the book.

@amyipdev
Copy link
Contributor Author

@andi8086 i would say it's reasonable that most LCC users nowadays have not read the book

@drh drh merged commit 9bd4289 into drh:master Jun 17, 2024
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

Successfully merging this pull request may close these issues.

3 participants