tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] Two compilers at once


From: Michael Matz
Subject: Re: [Tinycc-devel] Two compilers at once
Date: Fri, 24 May 2019 21:51:26 +0200 (CEST)
User-agent: Alpine 2.21 (LSU 202 2017-01-01)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]