Hello,

On Fri, 24 May 2019, Karl Yerkes wrote:

As long as I make the second compiler after the first one compiles something, things work. is this a bug? Is using two compilers unsupported or prohibited?

libtcc contains some global state, i.e. shared between TCCState objects you create. Some of this sharing is harmless, some of it isn't; the latter is the reason why two compile objects generally don't work except by accident. Fixing this implies adding one indirection, and some of that state is used in extremely performance critical code, so it has never been a priority.

So, yeah, it's a current limitation of libtcc.


Ciao,
Michael.

_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

Reply via email to