3 ms·
Sure -- the compiler is small enough to include -- and fast enough. Bellard did an experiment where TCC was used to compile the Linux kernel on boot. Remarkable
by ratboy666 5y ago
Sure -- the compiler is small enough to include -- and fast enough.
Bellard did an experiment where TCC was used to compile the Linux kernel
on boot. Remarkable.
Yes, the source may be verbose. But, the API exposed would be C, and most
systems have a C FFI.
Instead of TCC, you may wish to consider Quick JS (Bellard's Javascript
interpreter).
The reason I use TCC is to validate C code. TCC evaluates arguments left to right, whereas GCC does right to left...