Compiler Explorer Assembly Output for C, C++ and D (dlang)
Tariq Siddiqui
m.tariqsiddiqui at gmail.com
Thu May 27 10:27:42 UTC 2021
On Thursday, 27 May 2021 at 09:11:35 UTC, Dennis wrote:
> On Thursday, 27 May 2021 at 08:47:50 UTC, Tariq Siddiqui wrote:
>> - What are these additional lines?
>
> D generates extra symbols per module for things like module
> constructors, unittests and class introspection (I think).
>
>> - How can I remove these lines from being generated?
>
> Pass the `-betterC` flag to dmd/ldc2.
Thanks for your answer, -betterC works well with simple code but
when using templates in code -betterC compilation failed.
More information about the Digitalmars-d-learn
mailing list