tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Optimizing for avx512


From: rempas
Subject: Re: [Tinycc-devel] Optimizing for avx512
Date: Sat, 5 Feb 2022 16:09:35 +0100 (CET)

5 Φεβ 2022, 11:01 Από eligis@orange.fr:

> The price to pay its really fast compilation is that the generated code is 
> poor compared to gcc, clang or vc++ (among others). Depending on your 
> program, consider it is roughly 2 to 4x slower.
>
I would say that this is not always the case. And correct me if I'm wrong but 
aren't optimization (except few of them) mostly because the programmer wrote 
bad code and the compiler found a better instructions to do the same thing? 
Inline assembly exists in the end so if you really really care about 
performance, you should probably use inline assembly in the most critical 
algorithms/functions. I've seen some code running the same on TCC and GCC so I 
suppose optimization doesn't always makes magic. Or you may have a 5% increase 
or even less. In any case, I would suggest using both TCC and then GCC/Clang 
for the critical parts that will be hugely favored by the optimizations these 
compilers can do.

But of course just my opinion on the topic.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]