[dmd-internals] What are the references to the DMD source directory in my binaries?

Walter Bright via dmd-internals dmd-internals at puremagic.com
Wed Jan 7 19:53:37 PST 2015


On 1/7/2015 3:55 PM, Martin Nowak via dmd-internals wrote:
> On 01/05/2015 08:16 PM, Rico Huijbers via dmd-internals wrote:
>>
>> But other than that, I'm at a loss as to what these strings are for, and
>> more importantly, how I can get rid of them to cut my run-time
>> dependency set.
>>
>> Any ideas?
>
> If you already ran strip -d then those result most likely from exceptions and 
> assertions which sometime carry additional location info.
> Not sure how can get rid of those.


These come from assert's, which print out the file/line of the failure. 
Unfortunately, the file name gets repeated in every generated object file. Those 
filename strings should be put in COMDATs, which will then result in one 
instance of the file name string per executable.


More information about the dmd-internals mailing list