2 ms·
I didn't find any mention about the speed of the output... so I wonder if they just disabled the optimiser completely. TCC is an extremely fast C compiler beca
by userbinator 12y ago
I didn't find any mention about the speed of the output... so I wonder if they just disabled the optimiser completely.
TCC is an extremely fast C compiler because it doesn't do any optimising at all.
- andrewchambers 12y agoThe reason C++ builds so slowly is mainly headers and templates iirc, they seem to just be dealing with caching header processing.
- yrnkrn 12y agoThe optimizer is not disabled, few global optimizations are. The speedup is mostly the result of not having to reparse the headers, reinstantiate and codegen the generated templated code rather than skip minor opts. This is really slow process that frequently needlessly repeated on multiple compile units. We are looking into this tradeoff, maybe making the decision user-configurable or based on opt. level.