On Thu, Oct 12, 2006 at 11:47:16AM -0400, Nicolas Pitre wrote: > > IIRC, the code size is reduced by omitting '= 0'. That is why kernel > > code prefers the style without '= 0'. > > Maybe it doesn't matter any more with the recetn gcc, though. > > The reason is that global variables with explicit initial values are > allocated to the .data section which is always present in the kernel > binary. When no explicit initial value is provided then the variable is > allocated to the .bss section which is _not_ included in the kernel > binary but initialized to zero at runtime. GCC has included explicitly zero initialized variables in the .bss section for a while now; this is controlled by -fno-zero-initialized-in-bss. -- Daniel Jacobowitz CodeSourcery ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxxxxxxx https://lists.sourceforge.net/lists/listinfo/alsa-devel