Array bound checks removal increasing importance

bearophile via Digitalmars-d digitalmars-d at puremagic.com
Mon Jun 2 02:24:37 PDT 2014


deadalnix:

> What do GDC or LDC generate for these sample code with 
> optimizations on ?

This is not an interesting question because those two programs 
are meant as parts of larger programs. ldc2 optimizes away both 
programs to "xorl %eax, %eax".

And I can't test on GDC because GDC compiler crashes on my system 
since years.

Bye,
bearophile


More information about the Digitalmars-d mailing list