Re: Automaticly eliminating redundant zero initialisers

From: Horst von Brand (vonbrand@sleipnir.valparaiso.cl)
Date: Mon May 01 2000 - 18:44:52 EST


David Forrest <drf5n@mug.sys.virginia.edu> said:

[...]

> Code written for Linux which relies on these zeros in the bss may not port
> well to foreign systems.

The C standard demands that globals that aren't initialized explicitly are
filled with zeroes. gcc allocates them into BSS on Linux, which works fine,
and this is where the optimization is being proposed. The same program
elsewhere might need a different setup, no Linux business at all.

-- 
Horst von Brand                             vonbrand@sleipnir.valparaiso.cl
Casilla 9G, Viņa del Mar, Chile                               +56 32 672616

- 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/



This archive was generated by hypermail 2b29 : Sun May 07 2000 - 21:00:09 EST