Pragma mangle and D shared objects

Etienne Cimon via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Sat Oct 25 19:54:53 PDT 2014


On 2014-10-25 21:26, H. S. Teoh via Digitalmars-d-learn wrote:
> Not sure what nm uses, but a lot of posix tools for manipulating object
> files are based on binutils, which understands the local system's object
> file format and deal directly with the binary representation. The
> problem is, I don't know of any *standard* system functions that can do
> this, so you'd have to rely on OS-specific stuff to make it work, which
> is less than ideal.
>

Which makes it better to export the mangling into a container at 
compile-time! That way, you can build a standard interface into DLLs so 
that other D application know what they can call =)



More information about the Digitalmars-d-learn mailing list