Software Alternatives, Accelerators & Startups

Tiny C Compiler

The Tiny C Compiler is an x86, x86-64 and ARM processor C compiler created by Fabrice Bellard.

Tiny C Compiler

Tiny C Compiler Reviews and Details

This page is designed to help you find out whether Tiny C Compiler is good and if it is the right choice for you.

Screenshots and images

  • Tiny C Compiler Landing page
    Landing page //
    2019-11-06

Features & Specs

  1. Fast Compilation

    Tiny C Compiler (TCC) is known for its incredibly fast compilation speed, which makes it ideal for quick compilations and testing.

  2. 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.

  3. C99 Support

    TCC provides support for the C99 standard, allowing the use of newer C language features.

  4. Dynamic Code Generation

    TCC can compile and execute code dynamically, which can be useful for scripting or embedded contexts.

  5. 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.

Badges

Promote Tiny C Compiler. You can add any of these badges on your website.

SaaSHub badge
Show embed code

Videos

We don't have any videos for Tiny C Compiler yet.

Social recommendations and mentions

We have tracked the following product recommendations or mentions on various public social media platforms and blogs. They can help you see what people think about Tiny C Compiler and what they use it for.
  • What every compiler writer should know about programmers (Anton Ertl, 2015) [pdf]
    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
  • Git: Introduce Rust and announce that it will become mandatorty
    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
  • Weird Lexical Syntax
    > 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
  • Pnut: A C to POSIX Shell Compiler you can Trust
    "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
  • Cwerg: C-like language that can be implemented in 10kLOC
    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
  • Exploring the Internals of Linux v0.01
    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
  • The C Interpreter: A Tutorial for Cin
    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
  • SectorC: A C Compiler in 512 bytes
    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
  • What constitutes a "debugger enabled version of bash"
    The tinyc compiler reads scripts like a c-interpreter, with shebang and all. Source: over 3 years ago
  • Tiny-C Language Compiler
    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
  • Tiny-C Compiler
    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
  • Tiny-C Language Compiler
    What you're looking for is probably Bellard's Tiny C Compiler (TCC). Source: over 3 years ago
  • Tiny-C Language Compiler
    Virgin stripped-down Tiny-C vs Chad Bellard's TCC (gcc but FAST (to compile, not execute)). Source: over 3 years ago
  • Tiny-C Compiler
    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
  • The Super Tiny Compiler
    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
  • What the hell is Forth? (2019)
    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
  • dont want online ones
    Try tcc https://bellard.org/tcc/ be warned it doesnt do c++. Source: over 3 years ago
  • dont want online ones
    TCC allows you to use c like scripting language. Source: over 3 years ago
  • A suckless RSS reader, finally
    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
  • A Compiler Writing Journey
    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
  • Post-Apocalyptic Programming
    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.

Suggest an article

Tiny C Compiler discussion

Log in or Post with

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.