[Top][All Lists]

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

Re: [Tinycc-devel] Fwd: libtcc name mangling

From: grischka
Subject: Re: [Tinycc-devel] Fwd: libtcc name mangling
Date: Wed, 11 Sep 2013 19:21:57 +0200
User-agent: Thunderbird (Windows/20090812)

Gabriel Corneanu wrote:
Sorry, replied to private instead of list:

I have just checked and mingw generates "address@hidden" where tcc generates "address@hidden"; so it seems that it doesn't work quite the same.

It is a bug in mingw.

It would work the same if it respects the "leading-underscore" flag.

How, if mingw doesn't add the underscore for stdcall while it has
leading underscores on by default.

Anyway, I still don't quite get the reasons; all Windows (stdcall) dlls have simple names, no decoration. How can one generate non-decorated dll stdcall exports?

By being Microsoft.

On the other hand I see in tccpe.c / pe_export_name, pe_find_import, it skips the underscore/decoration.

Yes, the issue is somehow, say, delicate.

I would just need a similar possibility for tcc_get_symbol, i.e. I would like to avoid coding the decoration.
Eventually an extra option, similar to "leading-underscore".


--- grischka

reply via email to

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