Fast Compilation
Tiny C Compiler (TCC) is known for its incredibly fast compilation speed, which makes it ideal for quick compilations and testing.
Small Size
TCC has a very small footprint compared to other compilers, making it easy to include in applications and use in environments with limited resources.
C99 Support
TCC provides support for the C99 standard, allowing the use of newer C language features.
Dynamic Code Generation
TCC can compile and execute code dynamically, which can be useful for scripting or embedded contexts.
Simplified Licensing
Under the GNU Lesser General Public License (LGPL), TCC can be more easily used in various projects, including proprietary ones, compared to compilers with more restrictive licenses.
We have collected here some useful links to help you find out if Tiny C Compiler is good.
Check the traffic stats of Tiny C Compiler on SimilarWeb. The key metrics to look for are: monthly visits, average visit duration, pages per visit, and traffic by country. Moreoever, check the traffic sources. For example "Direct" traffic is a good sign.
Check the "Domain Rating" of Tiny C Compiler on Ahrefs. The domain rating is a measure of the strength of a website's backlink profile on a scale from 0 to 100. It shows the strength of Tiny C Compiler's backlink profile compared to the other websites. In most cases a domain rating of 60+ is considered good and 70+ is considered very good.
Check the "Domain Authority" of Tiny C Compiler on MOZ. A website's domain authority (DA) is a search engine ranking score that predicts how well a website will rank on search engine result pages (SERPs). It is based on a 100-point logarithmic scale, with higher scores corresponding to a greater likelihood of ranking. This is another useful metric to check if a website is good.
The latest comments about Tiny C Compiler on Reddit. This can help you find out how popualr the product is and what people think about it.
Some of those already exist, e.g. https://bellard.org/tcc/ However, they're not in widespread use. I would be curious to learn if there's any data/non-anecdotal information as to why. Is it momentum/inertia of GCC/LLVM/MSVC? Are alternative compilers incomplete and can't actually compile a lot of practical programs (belying the "relatively simple program") claim? Or is the performance differential due to... - Source: Hacker News / 5 months ago
In theory you should be able to use TCC to build git currently [1] [2]. If you have a lightweight system or you're building something experimental, it's a lot easier to get TCC up and running over GCC. I note that it supports arm, arm64, i386, riscv64 and x86_64. [1] https://bellard.org/tcc/ [2] https://github.com/TinyCC/tinycc. - Source: Hacker News / 10 months ago
> I'm not sure who wants to be able to syntax highlight C at 35 MB per second, but I am now able to do so Fast, but tcc *compiles* C to binary code at 29 MB/s on a really old computer: https://bellard.org/tcc/#speed. - Source: Hacker News / over 1 year ago
"Because Pnut can be distributed as a human-readable shell script (`pnut.sh`), it can serve as the basis for a reproducible build system. With a POSIX compliant shell, `pnut.sh` is sufficiently powerful to compile itself and, with some effort, [TCC](https://bellard.org/tcc/). Because TCC can be used to bootstrap GCC, this makes it possible to bootstrap a fully featured build toolchain from only human-readable... - Source: Hacker News / almost 2 years ago
For what it's worth you can implement a C compiler in under 10kLOC. The chibi C compiler is only a few thousand lines [1]. There is also Cake [2] and the tiny C compiler [3] which are both relatively small. [1] https://github.com/rui314/chibicc [3] https://bellard.org/tcc/. - Source: Hacker News / over 2 years ago
I was going to say, the list should include something by Fabrice Bellard. Tiny C Compiler is one. https://bellard.org/tcc/ I was thinking, maybe first version/commit of QEMU would be interesting to read. - Source: Hacker News / almost 3 years ago
I occasionally use tcc (https://bellard.org/tcc/) like an interpreter (`tcc -run`), it's convenient for certain odd tasks. Not so much for interactive stuff, but if I'm building little PoCs for an idea that will get dropped into a C project, or fiddling with structs work out how something should/is being stored, or in situations where I'm making stuff that interacts with or examples based on C code and I want to... - Source: Hacker News / about 3 years ago
This reminded me the idea of compilers bootstrapping (https://news.ycombinator.com/item?id=35714194). That is, now you can code in SectorC some slightly more advanced version of C capable of compiling TCC (https://bellard.org/tcc/), and then with TCC you can go forward to GCC and so on. - Source: Hacker News / about 3 years ago
The tinyc compiler reads scripts like a c-interpreter, with shebang and all. Source: over 3 years ago
I remember the good old days when you could put TCC into your bootloader, so you could boot the kernel from source code. Source: over 3 years ago
While Fabrice Bellard is no longer working on TCC [0] and an official release tarball hasn't been packaged since version 0.9.27 (5 years ago) the project is by no means unmaintained. For details, check their current working repository [1] and mailing list [2]. [0]: https://bellard.org/tcc/ [1]: https://repo.or.cz/tinycc.git [2]: https://lists.nongnu.org/archive/html/tinycc-devel/. - Source: Hacker News / over 3 years ago
What you're looking for is probably Bellard's Tiny C Compiler (TCC). Source: over 3 years ago
Virgin stripped-down Tiny-C vs Chad Bellard's TCC (gcc but FAST (to compile, not execute)). Source: over 3 years ago
Not to be confused with https://bellard.org/tcc/, which is a tiny compiler for the C language. - Source: Hacker News / over 3 years ago
I thought is was about this: https://bellard.org/otcc/otcc.c (a tiny, obfuscated C compiler, winner of the 2001 IOCCC). It has led to TinyCC (https://bellard.org/tcc/), not as tiny, but also more complete, not obfuscated and actually useful. It turns out the compiler in the article is the opposite of that. It it a simple toy transpiler and the code is very clear and mostly made of comments. The former is a feat of... - Source: Hacker News / over 3 years ago
I didn't really understand forth till I tried implementing eforth in c. https://github.com/tehologist/forthkit That was so much fun I built a second one in under 300 lines of javascript for experimenting with canvas api in web browser. Single file doesn't require a server, you can drag and drop code onto text window. https://github.com/tehologist/ecma6-forth... - Source: Hacker News / over 3 years ago
Try tcc https://bellard.org/tcc/ be warned it doesnt do c++. Source: over 3 years ago
TCC allows you to use c like scripting language. Source: over 3 years ago
But I don't think Rust fits in here: https://suckless.org/philosophy/ > How is Rust incompatible with aligning with the philosophy that encourages building simple yet functional things? I would say it attracts different kind of developers that in turn make respective design choices, and I believe Rust, its syntax, package management ecosystem and community reflect that. Can you write simple system tools in... - Source: Hacker News / over 3 years ago
I was thinking of writing a transpile to C that compiles and executes at runtime. Sounds like you want TCC: > Compile and execute C source directly. No linking or assembly necessary. > TCCBOOT, a hack where TCC loads and boots a Linux kernel from source in about 10 seconds. That is to say, it is a "boot loader" that reads Linux kernel source code from disk, writes executable... - Source: Hacker News / over 3 years ago
There are also https://bellard.org/tcc/ and https://github.com/jserv/amacc that contain mostly complete C compilers. - Source: Hacker News / almost 4 years ago
Do you know an article comparing Tiny C Compiler to other products?
Suggest a link to a post with product alternatives.
Is Tiny C Compiler good? This is an informative page that will help you find out. Moreover, you can review and discuss Tiny C Compiler here. The primary details have not been verified within the last quarter, and they might be outdated. If you think we are missing something, please use the means on this page to comment or suggest changes. All reviews and comments are highly encouranged and appreciated as they help everyone in the community to make an informed choice. Please always be kind and objective when evaluating a product and sharing your opinion.