Why is this D code slower than C++?
Lionello Lunesu
lio at lunesu.remove.com
Thu Jan 18 08:19:56 PST 2007
When comparing the generated assembly from the dmc exe with the one from
dmd, I noticed that the D one had many "movsd; movsd; movsd;" sequences
(obviously copying of one vector3 to another). I could not find these in
the C version.
Maybe the DMC is better at register aliasing (or what's it called) than
DMD? I mean, DMD's actually moving data around, where DMC simply changes
the names of the data?
Only W. knows.
L.
More information about the Digitalmars-d-learn
mailing list