Full Disclosure mailing list archives

1 advantage for implicit static storage init


From: silvio () big net au (silvio () big net au)
Date: Sun, 15 Sep 2002 17:05:46 -0700

ok.. 1 advantage that is possible with implicit initialization..

if a c compiler does not realize it is a zero initialization, it may
put the data in initializated data segment.

if its not initialized, it will put it in the bss.

since the bss is rather implicit and doesnt carry weight in the binary,
the bss obviously allows for binary size to shrink.  (looking at unix).

i think this is shortcuting for no reason though :)

--
Silvio


Current thread: