News for hackers. Stuff that matters.
Re:I write games in C (yes, C) by pjmlp on Sunday February 08, 2026 @03:30AM (#46932471)
The question is the performance optimisations on top.

1990's compilers were also super fast, they only did optimisation for size, speed, constant propagation, and little else.

Zero code motion, loop unroling, code elision, heap via stack replacement, inlining,...

Re:I write games in C (yes, C) by uecker on Sunday February 08, 2026 @03:43AM (#46932541)
Of course, but gcc with -O0 is still slower and there is no TCC for C++.
Re:I write games in C (yes, C) by pjmlp on Sunday February 08, 2026 @07:03AM (#46933541)
There are other C++ compilers to benchmark against, using the same common C subset for comparison, though.
Re:I write games in C (yes, C) by uecker on Sunday February 08, 2026 @08:54AM (#46934199)
Is there still any non-LLVM C++ compiler left besides GCC? LLVM is not exactly known for its speed.
Re:I write games in C (yes, C) by not_a9 on Sunday February 08, 2026 @10:58AM (#46935424)
MSVC?
Re:I write games in C (yes, C) by pjmlp on Sunday February 08, 2026 @12:31PM (#46936500)
Many embedded vendors still haven't made the jump, and Microsoft.