On Wednesday, 24 October 2012 at 17:43:11 UTC, H. S. Teoh wrote:

Surprisingly, though, dmd still produces a smaller executable than gdc
for this code! I'm guessing the optimizer cleans up that code
afterwards? (Or maybe there are other factors at play here that I'm not aware of.)

Must be other factors. "Optimized" code (generated by dmd with -release -O) looks like
mov DWORD PTR [edx], 0
mov DWORD PTR [edx+4], 0
mov DWORD PTR [edx+8], 0
...
so it should be even bigger and probably slower.

Reply via email to