www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.ldc - Win x86 name mangling

reply Johan Engelen <j j.nl> writes:
Can anybody tell me why on Win32 (but not Win64!) we emit 
function symbols with leading "\01" and with an extra leading "_" 
?

Thanks!
   Johan
May 25 2016
next sibling parent Johan Engelen <j j.nl> writes:
On Wednesday, 25 May 2016 at 13:12:07 UTC, Johan Engelen wrote:
 extra leading "_" ?
Can I remove the extra "_" ?
May 25 2016
prev sibling parent reply kink <noone nowhere.com> writes:
On Wednesday, 25 May 2016 at 13:12:07 UTC, Johan Engelen wrote:
 Can anybody tell me why on Win32 (but not Win64!) we emit 
 function symbols with leading "\01" and with an extra leading 
 "_" ?
Rainer should know. IIRC, there's a comment saying that this prevents LLVM from tampering with the name (based on calling convention).
May 25 2016
parent Johan Engelen <j j.nl> writes:
See https://github.com/ldc-developers/ldc/pull/1521.
May 25 2016