Vladimir Panteleev via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Sat Sep 20 13:19:03 PDT 2014
On Friday, 19 September 2014 at 08:07:51 UTC, David Nadlinger via
> There is pragma(LDC_no_moduleinfo) , though, which might
> still get you a long ways.
It did, thanks.
>> 3. Do I understand correctly that LDC uses COFF object files,
>> however uses gcc/ld for linking? Meaning that MinGW uses COFF
>> files on Windows as well?
> OTOH, yes, MinGW also emits object files as COFF. If you are
> only interested in Win64 you could also try to use the
> MSVC-based toolchain.
The MS linker seemed to work OK for my very simple cases.
> Stripping unused sections actually works with link.exe, in
> contrast to MinGW's COFF linker.
For some reason the MS linker left the .ctors section as-is in
the resulting EXE, but pragma(LDC_no_moduleinfo) took care of
More information about the digitalmars-d-ldc