Poor man's LTO on windows
Kagamin via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Thu Oct 8 11:17:21 PDT 2015
clang builds have some LTO.dll, but I didn't hear about it
working on windows. Looks like there's a tool that can work like
lto, the process is as follows:
ldc2.exe -m64 -of=tmp.bc -Os -singleobj -output-bc -c *.d
llvm-lto.exe -O2 -filetype=obj -exported-symbol=_Dmain -o tmp.o
tmp.bc
Here we get an object file that can be subsequently linked. This
removes module constructors too :)
BTW does ldc support gcc-style -o option?
More information about the digitalmars-d-ldc
mailing list