Top
Best
New

Posted by guerrilla 5 hours ago

Tiny C Compiler(bellard.org)
123 points | 55 commentspage 2
RobotToaster 1 hour ago|
What advantage does this have over SDCC?
throwatdem12311 4 hours ago||
This was the compiler I was required to use for my courses in university. GCC was forbidden. The professor just really liked tcc for some reason.
II2II 3 hours ago||
> The professor just really liked tcc for some reason.

Perhaps, or maybe they just got tired of students coming in and claiming that their program worked perfectly on such-and-such compiler.[1] It looks like tcc would run on most systems from the time of its introduction, and perhaps some that are a great deal older. When I took a few computer science courses, they were much more restrictive. All code had to be compiled with a particular compiler on their computers, and tested on their computers. They said it was to prevent cheating but, given how trivial it would have been to cheat with their setup, I suspect it had more to do with shutting down arguments with students who came in to argue over grades.

[1] I was a TA in the physical sciences for a few years. Some students would try to argue anything for a grade, and would persist if you let them.

dymk 2 hours ago||
The prof could have just said "Use GCC <version>" then, which would run on even more systems than TCC. Professor probably just really liked TCC.
mort96 4 hours ago|||
Seems like a good way to get students to write C rather than GNU C.
uecker 4 hours ago|||
TCC - just like many other C compilers - supports many GNU extensions.
einpoklum 4 hours ago|||
The professor could have just insisted on `-std=c99` or a similar GCC flag which disallows GNU extensions.

When I taught programming (I started teaching 22 years ago), the course was still having students either use GCC with their university shell accounts, or if they were Windows people, they would use Borland C++ we could provide under some kind of fair use arrangement IIANM, and that worked within a command shell on Windows.

actionfromafar 4 hours ago||
On the other hand, with tcc, you'd know exactly what you were dealing with.

I used it just the other day to do some tests. No dependencies, no fiddling around with libwhater-1.0.dll or stuff like that when on Windows and so on.

pbohun 4 hours ago||
There also is an unofficial mirror which has updates.

https://github.com/TinyCC/tinycc

_kst_ 1 hour ago|
That has the same content as git://repo.or.cz/tinycc.git
rustyhancock 5 hours ago||
What a blast from the past TCC!

Sad but not surprised to see it's no longer maintained (8 years ago!).

Even in the era of terabyte NVMe drives my eyes water when I install MSVC (and that's usually just for the linker!)

antirez 5 hours ago||
That is, I believe, one the points of AI and Open Source many contacts. Something like TCC, with a good coding agent and a developer that cares about the project, and knows enough about it, can turn into a project that can be maintained without the otherwise large efforts needed, that resulted into the project being abandoned. I'm resurrecting many projects of mine I had no longer the time to handle, like dump1090, linenoise, ...
pkal 4 hours ago|||
I don't think it is not maintained, there is plenty of activity going on in the repo: https://repo.or.cz/tinycc.git, they just don't seem to be cutting releases?
shakna 4 hours ago|||
Still maintained. You have the mob repo in another comment.

Debian, Fedora, Arch and others pull their package from the mob repo. They're pretty good at pulling in CVE fixes almost immediately.

Thomas Preud'homme is the new maintainer lead, though the code is a mob approach.

kristianp 4 hours ago||
There's still activity on the mailing list. It may still be maintained.

https://lists.nongnu.org/archive/html/tinycc-devel/2026-02/t...

olivia-banks 4 hours ago||
TCC is fantastic! I use it a lot to do fast native-code generation for language projects, and it works really really well.
kimixa 4 hours ago||
Man I can't wait for tcc to be reposted for the 4th time this week with the license scrubbed and the comment of "The Latest AI just zero-shotted an entire C compiler in 5 minutes!"
overgard 3 hours ago||
And the subsequent youtube hype videos of "COMPILER WRITING IS OVER!"
resonious 3 hours ago|||
There actually was an article like this from Anthropic the other day but instead of 5 minutes I think it was weeks and $20,000 worth of tokens. Don't have the link handy though.
Barbing 2 hours ago|||
Sixteen Claude AI agents working together created a new C compiler - Ars Technica

https://arstechnica.com/ai/2026/02/sixteen-claude-ai-agents-...

> The $20,000 experiment compiled a Linux kernel but needed deep human management.

We tasked Opus 4.6 using agent teams to build a C Compiler | Hacker News

https://news.ycombinator.com/item?id=46903616

logicprog 2 hours ago||
Quoting my sibling comment:

Except it was written in a completely different language (Rust), which likely would have necessitated a completely different architecture, and nobody has established any relationship either algorithmically or on any other level between that compiler and TCC. Additionally, and Anthropic's compiler supports x86_64 (partially), ARM, and RISC-V, whereas TCC supports x86, x86_64, and ARM. Additionally, TCC is only known to be able to boot a modified version of the Linux 2.4 kernel[1] instead of an unmodified version of Linux 6.9.

Additionally, it is extremely unlikely for a model to be able to regurgitate this many tokens of something, especially translated into another language, especially without being prompted with the starting set of tokens in order to specifically direct it to do that regurgitation.

So, whatever you want to say about the general idea that all model output is plagiarism of patterns it's already seen or something. It seems pretty clear to me that this does not fit the hyperbolic description put forward in the parent comments.

[1]: https://www.bellard.org/tcc/tccboot.html

logicprog 3 hours ago|||
Except it was written in a completely different language (Rust), which would have necessitated a completely different architecture, and nobody has established any relationship either algorithmically or on any other level between that compiler and TCC.
logicprog 3 hours ago|||
I don't understand what you could possibly be talking about. Do you care to elaborate?
rowanG077 3 hours ago|||
I may have missed this. Do you have a link when AI verbatim copied tcc and it was publicized? I have my doubts.
markus_zhang 4 hours ago||
I mixed it up with LCC which was used in Quake 3. Still this is pretty cool.
deivid 4 hours ago||
TCC is fantastic! Very hackable, easy to compile to WASM for some interesting in-browser compilation
yjftsjthsd-h 2 hours ago|
I thought it only targeted x86? What's the point running in a browser?
MarginalGainz 3 hours ago|
[dead]