Chibicc: A Small C Compiler
github.com
Chibicc: A Small C Compiler
1–10 of 48 posts
Re: Chibicc: A Small C Compiler
#2Looking forward to the release, and will definitely get a copy!
Re: Chibicc: A Small C Compiler
#3Another small C compiler by the same author: https://github.com/rui314/8cc
Re: Chibicc: A Small C Compiler
#4Outstanding. A professional C compiler with a hackable codebase that emits x86_64 code. I'm noticing it assumes glibc-based linux. What if I modified it to emit Actually Portable Executables without needing ld/as?
Re: Chibicc: A Small C Compiler
#5I quite like the learn-by-commit style. Look at a diff and see what changes it took to add a feature. Very good way of showing things in a format everyone is already familiar with.
Re: Chibicc: A Small C Compiler
#6It would be helpful if the title was edited to feature the compiler's name: chibicc. It would make it easier to search and SEO-wise it would be helpful to disseminate the project.
Re: Chibicc: A Small C Compiler
#7Where will we be able to buy a copy? Is there a mailing list? I will certainly forget about this book in n months time.
Re: Chibicc: A Small C Compiler
#8Re: Chibicc: A Small C Compiler
#9>Each commit of this project corresponds to a section of the book. For this purpose, not only the final state of the project but each commit was carefully written with readability in mind. Readers should be able to learn how a C language feature can be implemented just by reading one or a few commits of this project. For example, this is how while, [], ?:, and thread-local variable are implemented. If you have plenty of spare time, it might be fun to read it from the first commit.
nice
Re: Chibicc: A Small C Compiler
#10Where will we be able to buy a copy? Is there a mailing list? I will certainly forget about this book in n months time.
You could write to the author or follow their social media: https://www.sigbus.info/