On 2011-08-09 22:04, bearophile wrote:
Christian Kamm:
bearophile, just out of interest, what's the performance like if you ran
ldmd -O3 -release -inline smallpt2_d.d ?
I don't remember what ldmd is. Without LTO the performance of the LDC compile
was a bit lower than the G++ compile.
ldmd
If I compile it with with LDC1 with Link Time Optimization + Interning:
ldc -O3 -release -inline -output-bc smallpt2_d.d
opt -std-compile-opts smallpt2_d.bc smallpt2_do.bc
llvm-ld -native -ltango-base-ldc -ltango-user-ldc -ldl -lm -lpthread
-internalize-public-api-list=_Dmain -o=smallpt2_do
Trass3r:
Is there a more convenient way to get LTO with LDC?
This is the best/only one I have found for LDC1. Feel free to search for
something better/shorter (and tell me if you find it, please).
Bye,
bearophile
Am 10.08.2011, 14:54 Uhr, schrieb bearophile bearophileh...@lycos.com:
Trass3r:
Is there a more convenient way to get LTO with LDC?
This is the best/only one I have found for LDC1. Feel free to search for
something better/shorter (and tell me if you find it, please).
Well, obviously you
LDC does have -O4 and -O5 switches but they probably don't work?!
Had a quick look at the source, no indications that -O4 and O5 do anything
more than -O3.
On 10/08/2011 14:49, Trass3r wrote:
LDC does have -O4 and -O5 switches but they probably don't work?!
Had a quick look at the source, no indications that -O4 and O5 do
anything more than -O3.
They don't, there's no way to do LTO built into LDC. I seem to recall
some conversation about
On 10/08/2011 17:43, Trass3r wrote:
Am 10.08.2011, 18:16 Uhr, schrieb Robert Clipsham
rob...@octarineparrot.com:
On 10/08/2011 14:49, Trass3r wrote:
Had a quick look at the source, no indications that -O4 and O5 do
anything more than -O3.
They don't, there's no way to do LTO built into LDC.
bearophile wrote:
Trass3r:
I ported smallpt to D some time ago and now that I've working versions of
LDC2 and GDC2 I did a quick comparison:
I have converted to D many of the commonly found benchmarks, this is my
version: http://codepad.org/ZbmSfseY
If I compile it with with LDC1 with
Christian Kamm:
bearophile, just out of interest, what's the performance like if you ran
ldmd -O3 -release -inline smallpt2_d.d ?
I don't remember what ldmd is. Without LTO the performance of the LDC compile
was a bit lower than the G++ compile.
And why would internalizing _Dmain have a
This is off topic but if you're interested you can get it to run using
float if you change the Sphere code to:
FP eps = 1e-2; instead of 1e-4;
I ported smallpt to D some time ago and now that I've working versions of
LDC2 and GDC2 I did a quick comparison:
Original code:
http://kevinbeason.com/smallpt/explicit.cpp
D version:
https://bitbucket.org/trass3r/smallptd/src
C++ -- g++ -O3 explicit.cpp:
Rendering (4 spp) 100.00%
real
Trass3r:
I ported smallpt to D some time ago and now that I've working versions of
LDC2 and GDC2 I did a quick comparison:
I have converted to D many of the commonly found benchmarks, this is my version:
http://codepad.org/ZbmSfseY
If I compile it with with LDC1 with Link Time Optimization
12 matches
Mail list logo