Re: [Tinycc-devel] Tinycc-devel Digest, Vol 192, Issue 8

2019-05-14 Thread Jonathan Newman
Are you using a recent build of TCC? Anything built after July 2018 will have nodecorate. The original 0.9.27 doesn't have it. (The version number hasn't been changed, unfortunately.) On Tue, 14 May 2019 at 20:43, Ben Hutchinson wrote: > Ok, I just tried the nodecorate attribute (I'm using TCC v

Re: [Tinycc-devel] How do I rename exported DLL function?

2019-05-14 Thread Vladimir Vissoultchev
Hi, I just pushed a simple fix for the asm_label hack that's used to specify DLL export name and accidentally got dropped in 0.9.27 https://github.com/TinyCC/tinycc/commit/1dd6842654c8f8f6bf1a94364f0fd23ed10cc7e1 It seems I cannot push to mob as of now. Someone care to merge? cheer

Re: [Tinycc-devel] Tinycc-devel Digest, Vol 192, Issue 8

2019-05-14 Thread Ben Hutchinson
Ok, I just tried the nodecorate attribute (I'm using TCC version 0.9.27), and it doesn't work. TCC is behaving as if I never typed the nodecorate attribute at all. It's literally completely ignoring that attribute. Here's my code: __attribute((dllexport,stdcall,nodecorate)) int TestFuncStdcall(int

Re: [Tinycc-devel] How do I rename exported DLL function?

2019-05-14 Thread Ben Hutchinson
Thanks for the info. It does make it a lot simpler now with the nodecorate attribute. However, I remember that back in 0.9.26 there was a different way. You could use the __asm directive and then type the desired name of the function, and it would override the name that the compiler tried to give