What exactly does the compiler switch -betterC do?
Martin Nowak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Wed Oct 5 02:39:33 PDT 2016
On Monday, 19 September 2016 at 21:09:39 UTC, Gary Willoughby
wrote:
> On Monday, 20 June 2016 at 06:35:32 UTC, Jacob Carlborg wrote:
>> On 2016-06-19 21:53, Gary Willoughby wrote:
>> If compiled with -betterC, it contains these:
>>
>> 0000000000000000 T _main
>> U _printf
>
> I get significantly more symbols than that when compiling the
> following program any idea why?
Because you're linking with druntime/phobos which drags in plenty
of symbols (including a GC). Also Jakob is showing the symbols of
the object file, not executable.
More information about the Digitalmars-d-learn
mailing list