3 ms·
From what I can tell chibicc, unlike tcc, is not a complete c compiler in and of itself. Looking at its source code, it relies upon external tools for both x86_
by norir 10mo ago
From what I can tell chibicc, unlike tcc, is not a complete c compiler in and of itself. Looking at its source code, it relies upon external tools for both x86_64 code gen and linking: https://github.com/rui314/chibicc/blob/90d1f7f199cc55b13c7fdb5839d1409806633fdb/main.c#L570-L573 https://github.com/rui314/chibicc/blob/90d1f7f199cc55b13c7fd...
- fuhsnn 10mo agoIt does rely on binutils, but by this standard GCC is not a complete C compiler either.
- kragen 10mo agoRelying on binutils and an assembler is fine. I don't think it really affects the internal complexity of the compiler much, but having textual assembly to look at can be handy for debugging the compiler, so it might reduce the human effort to get it working.