Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Optimization levels with tiny C compiler

Tags:

tcc

I've read in the manpage that

Note: GCC options -Ox, -fx and -mx are ignored.

It produces different binary sizes, compiling st with gcc -O3, the binary size is 120K and with tcc it's 112K.

Is code compiled with tcc running slower than gcc -O3?


1 Answers

Tcc does not optimise. Normally, gcc's optimisations result in binaries which run considerably faster. (The size of the binary is not a predictor of execution speed, by the way.)

like image 57
rici Avatar answered Jan 21 '26 09:01

rici



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!