Identifier-name compression.

Stefan Koch via Digitalmars-d digitalmars-d at puremagic.com
Sat May 21 16:55:29 PDT 2016


On Saturday, 21 May 2016 at 23:52:59 UTC, Walter Bright wrote:
> On 5/21/2016 4:45 PM, Stefan Koch wrote:
>> On Saturday, 21 May 2016 at 23:43:48 UTC, Walter Bright wrote:
>>> On 5/21/2016 4:30 PM, Stefan Koch wrote:
>>>> Of course the table would have to build by the compiler and 
>>>> inserted as data
>>>> into the object-file.
>>>
>>> You'd have to build your own linker, too.
>>
>> Not if dmd is used to build the executable.
>
> Since such a dmd would have to be able to read .o files created 
> by C/C++, it would be the same thing as building our own linker.

If an extern(C) or extern(c++) is used we can't do our mangling 
scheme anyway.
So any function that is supposed to be called by C or C++ will 
still be mangled a compatible way.
That way we can get away with using dmd as a pre-linker and doing 
the rest of the job with the system linker.


More information about the Digitalmars-d mailing list