Re: Unnecessary zero initializers bloating .data

Bradley D. LaRonde (brad@ltc.com)
Sun, 19 Dec 1999 21:21:45 -0500


----- Original Message -----
From: "Peter Samuelson" <peter@wire.cadcamlab.org>
To: "Bradley D. LaRonde" <brad@ltc.com>
Cc: <linux-kernel@vger.rutgers.edu>
Sent: Sunday, December 19, 1999 5:27 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?
<snip>
> > This simple patch alone cuts the on-disk size of the kernel by over 8k,
and
> > it looks like it is just the beginning of removing bloat from .data:
>
> I haven't tried your patch, but considering what gzip does to long
> strings of nulls, I have to ask: are you talking about vmlinux or
> zImage?

I'm doing execute-in-place from rom, so yes, it's uncompressed vmlinux.

Compression does mostly cover this problem over, but I would like it fixed
for the uncompressed case.

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/