tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] make tcc reentrant


From: Ulrich Schmidt
Subject: Re: [Tinycc-devel] make tcc reentrant
Date: Wed, 11 Dec 2019 11:57:58 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.3.0

Am 06.12.2019 um 17:00 schrieb Karl Yerkes:
that repo disappeared. is this topic dead?

i would settle for a something less than fully reentrant. for
instance, if i could just link to two essentially identical, but
separate copies of libtcc, then i could be happy. to do this, i need
to be able to rename all the functions and globals. i'm writing a
program that will find and rename all symbols, so i hope to be able to
link to two separate copies of libtcc that don't share symbols.

Hi Karl.

I removed my git repo. I created it just to show how it could look like.
And i am no friend of different repos. The wourk should be done in a
branch in the main repo. May be i am wrong in this point. Meanwhile i
did my own experiments to find out what to do. Many vars are doubles,
one static var and a field in TCCState. Most changes would be easy
whithout changing the logic. tcc_run() located in libtcc.c is a little
bit harder. The simple solution would be: move tcc_run to tcc.c and
remove tcc_run from the libtcc api.

Greetings.
Ulrich.




reply via email to

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