lkml.org 
[lkml]   [1999]   [Dec]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Unnecessary zero initializers bloating .data
Date
----- Original Message -----
From: "Alan Cox" <alan@lxorguk.ukuu.org.uk>
To: "Peter Samuelson" <peter@wire.cadcamlab.org>
Cc: <brad@ltc.com>; <linux-kernel@vger.rutgers.edu>
Sent: Sunday, December 19, 1999 7:09 PM
Subject: Re: Unnecessary zero initializers bloating .data


> > [Bradley D. LaRonde <brad@ltc.com>]
> > > I think there are some unnecessary (and not benign) initializers here
> > > and there in the kernel.
> > [...]
> > > Why explicitly initialize those arrays with 0?
> >
> > Documentation. ISO rules aside, explicitly initializing what you will
>
> Actually its because old old Linux didnt clear the BSS. There is no
incentive
> to "fix" perfectly good code so it never gets cleaned up

Incentive has arrived. :-)

Regards,
Brad


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:55    [W:0.049 / U:0.056 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site