4 ms·
> TCC even implements array bounds-checking. Optionally (command line option '-b') though and (somewhat perplexingly) only at run-time. The documentation hint
by guenthert 2y ago
> TCC even implements array bounds-checking.
Optionally (command line option '-b') though and (somewhat perplexingly) only at run-time. The documentation hints at the run-time performance (and code size) impact.
- lieks 2y agoTCC doesn't do any optimization at all, so it shouldn't be that perplexing. But any compiler that does constant propagation, inlining and (ideally) integer range analysis can optimize away most run-time bounds-checks already. If GCC or clang did it, it would probably be fast enough.