Loop optimization

Steven Schveighoffer schveiguy at yahoo.com
Fri May 14 04:32:54 PDT 2010


On Fri, 14 May 2010 02:31:29 -0400, Lars T. Kyllingstad  
<public at kyllingen.nospamnet> wrote:

> On Fri, 14 May 2010 02:38:40 +0000, kai wrote:


>> I was using the DMD2 compiler on
>> mac and windows, with -O -release.
>
> 1. Have you tried the -noboundscheck compiler switch?  Unlike C, D checks
> that you do not try to read/write beyond the end of an array, but you can
> turn those checks off with said switch.

-release implies -noboundscheck (in fact, I did not know there was a  
noboundscheck flag, I thought you had to use -release).

-Steve


More information about the Digitalmars-d-learn mailing list