pragma(mangle, "name") suggestion !

Johan j at j.nl
Thu Mar 19 17:04:13 UTC 2020


On Thursday, 19 March 2020 at 04:59:14 UTC, Calvin P wrote:
> I intend use pragma(mangle, "name")   to avoid compiler 
> generate extra long symbol name. but it not work nicely.
>
...
>
> I need this because the ubyte[][] fields is very big array,  
> the symbol length is like more than 2000. The  backtrace debug 
> information is unable to reading even after demangle.

You can use LDC's --hash-threshold for this (hashes symbol names 
larger than a certain threshold.

-Johan



More information about the Digitalmars-d mailing list