[a / b / c / d / e / f / g / gif / h / hr / k / m / o / p / s / t / u / v / vg / vm / vmg / vr / vrpg / vst / w / wg] [i / ic] [r9k / s4s / vip] [cm / hm / lgbt / y] [3 / aco / adv / an / bant / biz / cgl / ck / co / diy / fa / fit / gd / hc / his / int / jp / lit / mlp / mu / n / news / out / po / pol / pw / qst / sci / soc / sp / tg / toy / trv / tv / vp / vt / wsg / wsr / x / xs] [Settings] [Search] [Mobile] [Home]
Board
Settings Mobile Home
/g/ - Technology


Thread archived.
You cannot reply anymore.


[Advertise on 4chan]


File: tcc-speed.png (61 KB, 898x555)
61 KB PNG
and fastest C compiler
https://desuarchive.org/g/thread/108690362
https://desuarchive.org/g/thread/109452823
>>
>it disables segfaults
what?
>>
>>109461691
https://desuarchive.org/g/thread/108690362
https://desuarchive.org/g/thread/109452823
>>
>>109461684
tricky graph that confuses people, its essentially only the "fastest" on obsolete hardware as modern compilers are optimized for modern hardware vs ancient hardware
>>
>>109461702
tcc 10x faster everywhere
>>
>>109461699
what the fuck do you mean it disables segfaults
segfaults are a feature of the kernel not the compiler, you do understand this, right?
>>
>>109461684
>yawns in nim
Nobody cares, C++ / C are dead lingos
>>
>>109461748
and?
>>
>disables segfaults
SCHIZOTHREAD DO ENGAGE
>>
File: 20220323140034.jpg (70 KB, 796x756)
70 KB JPG
>>109461785
>>
>>109461809
explanation:
https://desuarchive.org/g/thread/108690362
https://desuarchive.org/g/thread/109452823
>>
>>109461755
Good morning saar
>>
>>109461702
That's definitely not true. tcc is fast because it performs no optimizations. Even if you pass -O it will implement only a small subset of the optimizations one might find in the homework of a compiler 101 class. It also has a dedicated single-pass mode mostly intended for use with -run. gcc performs a minimum of 900 passes (last I checked, over 10 years ago, probably much worse now) before it even starts actually compiling code.
>>
>>109461979
>it performs no optimizations
That is incidentally the reason it disables segfaults as well. UB is very unlikely to crash if the compiler doesn't actually optimize on the assumptions you've erroneously validated or invalidated.
>>
tcc is fast because it fast
>>
>>109461702
>Confuses run time with compile time
Anon...
>>
also this:
https://desuarchive.org/g/thread/106861974
https://desuarchive.org/g/thread/106843778
https://desuarchive.org/g/thread/106554716
https://desuarchive.org/g/thread/106015802
https://desuarchive.org/g/thread/106375037
https://desuarchive.org/g/thread/105155906
https://desuarchive.org/g/thread/109303943
https://desuarchive.org/g/thread/109303986
>>
>>109461684
>>109461748
>>109461691
Contrary to popular belief standards complaint C *can* be bounds checked but no one does because the UB is unintuitive.

Except TCC which optionally supports it. Hence no segfaults.
>>
>>109463260
In GCC, this is just _GLIBCXX_DEBUG or _FORTIFY_SOURCE, depending on your usecase.
>>
>>109463681
no one use it for a reason
>>
>>109461684
>>109461699
>>109461835
Sorry anon, I don't think anybody is going to read all those archived threads you're linking. I love tcc too, I love to see others using it, I've even contributed to it before (to the or.cz mob repo, that is). If I'm not willing to click through and read all that shit then nobody else is.

If there's some specific info in them that you want people to notice, why not post screenshots...
>>
>>109463681
>FORTIFY_SOURCE,
>__builtin_dynamic_object_size
God damn the future just keeps getting more bright.
>>
>>109463828
>I'm
opinion discarded
>>
>>109463160
>>
>>109461684
>it disables segfaults
that's not a good thing
>>
>>109465676
explanation:
https://desuarchive.org/g/thread/108690362
https://desuarchive.org/g/thread/109452823
>>
>>109463160
>>
they are in the walls i swear
>>
you should stop posting these memes desus.
there was a teenager the other week who thought this was for real and actually submitted feature requests for using tcc in some real projects.
my metaphorical tears of sadness while scolding him and slapping him back into reality felt like crocodile ones.
>>
>>109467071
ok boomer
>>
>>109463160
>>
>>109464678
>>I'm
what, did you expect him to call himself a xhe or whatever?



[Advertise on 4chan]

Delete Post: [File Only] Style:
[Disable Mobile View / Use Desktop Site]

[Enable Mobile View / Use Mobile Site]

All trademarks and copyrights on this page are owned by their respective parties. Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.