long compile time question

thedeemon dlang at thedeemon.com
Wed Oct 24 11:17:50 PDT 2012


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.



More information about the Digitalmars-d-learn mailing list