Subject: re: libsa/alloc.c 'freelist' initialization
To: Chris G. Demetriou <cgd@netbsd.org>
From: matthew green <mrg@eterna.com.au>
List: tech-kern
Date: 05/11/1999 10:22:28
Simon Burge <simonb@netbsd.org> writes:
> Sounds like a good call to me. I don't suppose egcs is smart enough to
> move variables initialised to 0 to the BSS?
Err, uh, that'd actually be Smart, not smart.
Often the point of initializing a variable to 0 is just so that you
can patch it later.
The compiler _shouldn't even think about_ trying that, unless it's
explicitly requested.
the IRIX compiler will do this for you. fun!
.mrg.