On Sat, 2011-01-29 at 13:22 +0100, Philipp Überbacher wrote:
> Without optimisation the output is quite
> different, but beginning with -O2 the machine code appears all the same.
That's because your 2048 is static, and nothing is happening in the
loop, therefore gcc can optimise way more stuff away than in the real
code, because it "knows" that buffer size is always 2048 and that k is
not used inside the loop.
Peter.
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
http://lists.linuxaudio.org/listinfo/linux-audio-user
Received on Sat Jan 29 16:15:06 2011
This archive was generated by hypermail 2.1.8 : Sat Jan 29 2011 - 16:15:06 EET