[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[dm-devel] Re: [KJ] [PATCH] dm: uninitialize static variables
- From: "Carlos Manuel Duclos Vergara" <carlos embedded cl>
- To: "Nicolas Kaiser" <nikai nikai net>
- Cc: kernel-janitors lists osdl org, dm-devel redhat com
- Subject: [dm-devel] Re: [KJ] [PATCH] dm: uninitialize static variables
- Date: Mon, 5 Dec 2005 12:47:40 -0000 (GMT)
Hi,
> uninitialize static variables initialized to 0, to make them go
> to .bss instead of .data.
>
if you want that why not explicitely put them in .bss?
something like:
> -static unsigned int major = 0;
> +static unsigned int major; /* = 0 */
static unsigned int major = 0 __attribute__ ((section(".bss"));
Even when crt should take care of initializing bss to zero, so I think
that you're trying to save some cpu cycles
my $1
--
Carlos Manuel Duclos Vergara
http://www.toolchains.com/personal/blog
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]