4 ms·
Yeah, LLVM is a dog, about twice as slow and GCC and 20 times slower than TCC: gcc-11.2 -O0 0.02 clang-12.0.1 -O0 0.04 tcc 0.002
by akvadrako 4y ago
Yeah, LLVM is a dog, about twice as slow and GCC and 20 times slower than TCC:
gcc-11.2 -O0 0.02
clang-12.0.1 -O0 0.04
tcc 0.002
I wish TCC was still being maintained and supported by modern toolchains.
[1]: https://forum.nim-lang.org/t/8677 https://forum.nim-lang.org/t/8677
- camel-cdr 4y agoWhat makes you thing TCC isn't maintained anymore?
- justinclift 4y agoDoing a search for "TCC compiler" (to avoid very unrelated stuff) gives a homepage of: https://www.bellard.org/tcc/ https://www.bellard.org/tcc/ ... which says at the top: Note: I am no longer working on TCC. Check the mailing list to get up to date information. So, sounds pretty dead. But actually following the suggestion and taking a look at the mailing list helps: https://lists.nongnu.org/archive/html/tinycc-devel/2023-03/threads.html https://lists.nongnu.org/archive/html/tinycc-devel/2023-03/t... And the source code repo seems pretty active: https://repo.or.cz/w/tinycc.git https://repo.or.cz/w/tinycc.git
- akvadrako 4y agoIt can't be used to build against recent versions of musl or static glibc because they require thread-local variables, meaning it pretty much can only be used with dynamic glibc.
- ComputerGuru 4y agoYou’re benchmarking clang 12, not clang 16.