Loop optimization
Lars T. Kyllingstad
public at kyllingen.NOSPAMnet
Fri May 14 05:21:11 PDT 2010
On Fri, 14 May 2010 07:32:54 -0400, Steven Schveighoffer wrote:
> 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
You are right, just checked it now. But it's strange, I thought the
whole point of the -noboundscheck switch was that it would be independent
of -release. But perhaps I remember wrongly (or perhaps Walter just
hasn't gotten around to it yet).
Anyway, sorry for the misinformation.
-Lars
More information about the Digitalmars-d-learn
mailing list