Re: Performance, for(int i...) vs for(i...)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Aug 26, 2012 at 8:30 AM,  <lab@xxxxxxxxxxxxx> wrote:
>
> the result of forin.c and forout.c is the same:

You are compiling without optimization.  If you are interested in
performance, use the -O2 option.

> Seeing this, can I say that using int inside the for or outside for is the
> same? Have no difference on performance?

Correct: it has no difference in performance.  Why would it?

Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux