[Tinycc-devel] __attribute__((constructor)) not getting called

2022-10-01 Thread Liam Wilson
Hi, I've been attempting to build nodejs Node-API addons using the tiny c compiler. When doing this I noticed that the addons were failing to self register on load in nodejs as the constructors were failing to run. gcc worked fine, but tcc failed. Node-API addons use __attribute__((constructor))

Re: [Tinycc-devel] __attribute__((constructor)) not getting called

2022-10-04 Thread Liam Wilson
On Tue, 4 Oct 2022 at 14:32, Steffen Nurpmeso wrote: > Somehow interesting that such a huge API does not offer macros to > hide the declspec from module implementors. > But great! (That is how i would have done it, and it worked > twenty years ago.) I think it has NAPI_MODULE_EXPORT for that

Re: [Tinycc-devel] __attribute__((constructor)) not getting called

2022-10-03 Thread Liam Wilson
On Sat, 1 Oct 2022 at 18:27, Liam Wilson wrote: > > On Sat, 1 Oct 2022 at 17:00, Steffen Nurpmeso wrote: > > > > Liam Wilson wrote in > > : > > ... > > |I've been attempting to build nodejs Node-API addons using the tiny c > > |compiler. When doing t

Re: [Tinycc-devel] __attribute__((constructor)) not getting called

2022-10-01 Thread Liam Wilson
On Sat, 1 Oct 2022 at 17:00, Steffen Nurpmeso wrote: > > Liam Wilson wrote in > : > ... > |I've been attempting to build nodejs Node-API addons using the tiny c > |compiler. When doing this I noticed that the addons were failing to > |self register on load in nodejs as

[Tinycc-devel] i386 Linux stack alignment

2022-07-31 Thread Liam Wilson
_sp(args_size); vtop--; + +// 5c pop%esp +o(0x5c); +int blah=(4-(((args_size+4) & 15)>> 2))&3; +for(int bar=0;bardata[foo1+bar] = 0x50; +} } #ifdef TCC_TARGET_PE Thanks Liam Wilson ___

[Tinycc-devel] tcc-0.9.27 unable to compile latest mob

2024-03-13 Thread Liam Wilson
Hi, I notice that the release_0_9_27 tag is unable to build the latest mob (I tested 9d2068c6309dc50dfdbbc30a5d6757683d3f884c). I get the following error: $make tcc -o tcc.o -c tcc.c -DTCC_TARGET_I386 -DONE_SOURCE=0 -DTCC_GITHASH="\"2024-03-03 mob@9d2068c6\"" -Wall -O2 -I. tcc -o