The property of a compiler that it can compile itself is called self-hosting, and yes, tcc is self-hosting and so it can compile itself.
As for building without a makefile, for windows, there's a batch file at the win32 dir of the tcc sources which can compile tcc without using a makefile, but it's not very configurable and it assumes gcc is available for that. It could be modified to allow also tcc to be used, but right now it can't.
However, I believe the last officially released windows tcc binaries (0.26) which was released some years ago cannot compile the current tcc sources if I recall correctly.
Step 6 in the linked instructions will build tcc using gcc, and step 7 will built tcc again, now using the newly built tcc. In those steps (6, 7) remove the "--enable-cross" parts.
| || |
[Tinycc-devel] x86_64-win32-tcc.exe built with tcc (32) crashes. Works i
On Tuesday, January 17, 2017 7:32 AM, Ben Hutchinson <address@hidden> wrote:
I would like to fix a bug in TCC, but to do this I would like to compile it using the simplest known C compiler for Windows that has ever existed, TCC itself. However, I don't know how to use the MAKEFILE in TCC. The TCC source code comes with a MAKEFILE file, and I don't know how to use that with TCC. In the event that TCC can't use the MAKEFILE file, is there an alternative way to compile TCC using TCC? Or is it simply impossible to use TCC to compile TCC?
Tinycc-devel mailing listaddress@hiddenhttps://lists.nongnu.org/mailman/listinfo/tinycc-devel