Embed Notice
HTML Code
Corresponding Notice
- Embed this notice
pistolero :thispersondoesnotexist: (p@freespeechextremist.com)'s status on Sunday, 01-Oct-2023 09:28:39 JST pistolero :thispersondoesnotexist:
@moesha @animeirl @nishi
> which aims to have "70% of the performance of industrial optimizing compilers in 10% of the code."
Yeah, I think it's completely doable; Dhrystone put tinycc at about half as fast as `gcc -O3`, which surprised me. I know it's an old benchmark, but still. So if no optimization gets you to 50%, I think some low-hanging optimizations could get well past 70%.
> Chibcc is similar to TCC: its a non optimizing compiler, but its more modern and the code is easier to understand. Justine Tunney switched from using tinycc to chibcc in the Cosmopolitan libc project.
I think my main use of tinycc has been using libtcc as a JIT/FFI.
> https://github.com/rui314/chibicc
Hey, he cited Rob Pike and the Ghoulom paper, I like this compiler already.
(I cannot avoid being an asshole: "Modern" isn't really a meaningful word as used nowadays; it usually just gets used as a stand-in for "newer and maybe or maybe not better but definitely newer, probably something has been colorized, but anyway the old thing is definitely terrible because it was written six months ago.")