On Thu, Aug 31, 2006 at 10:18:59AM +0200, Abdelrazak Younes wrote: > >| - char out[1000] = { 0 }; > >| + static char out[1000]; > > > >Did you see if you get the same speedup if you just disable the > >initialization "{ 0 };"? > > No I didn't try. You reckon that the compiler will optimize that > automatically?
The 'char out[100]' without initialization shouldn't cost anything. The stack pointre will be adjusted anywasy, and whether 'x' or 'x+1000' will be added won't be a difference. Filling 1000 bytes with 0 is different, though. Andre'