Re: [Tinycc-devel] make tcc reentrant

2019-12-07 Thread Daniel Glöckner
Hi, On Sat, Dec 07, 2019 at 11:34:11AM +0100, Ulrich Schmidt wrote: > - The in scenario1 unloved 1 function parameter can be ignored and the > values stored locally: >   #define LIBPARAM1 >   #define VALUE(v) v >   .. > >   somereturn somefunc(LIBPARAM1 ...) { >     VALUE(count) = 0; >     ... >

Re: [Tinycc-devel] make tcc reentrant

2019-12-07 Thread Ulrich Schmidt
Hello. After reading all your posts. I see there are 2 scenarios/goals in the comunity. scenario 1: I want a tiny and fast c compiler (tcc/tcc.exe). In this case the TCCSTate struct is not needed at all and dereferencing TCCState fields slows down execution. Making TCCStruct fields local would

Re: [Tinycc-devel] make tcc reentrant

2019-12-07 Thread Domingo Alvarez Duarte
Hello ! I went to the trouble of making tcc fully reentrant but it was not accepted https://github.com/mingodad/tinycc which is sad. Cheers ! On 6/12/19 22:16, Charles Lohr wrote: Is there a reason you don't just compile tcc in tcc to make the tcc instance that is basically then reentrant?