Adam J. Richter wrote:
> At the moment, I have started daydreaming about instead
> writing an "elf squeezer" to do this and other space optimizations
> by modifying objdump.
Hmm, this would require that gcc never calculates the location of an
explicitly initialized static variable based on the address of another
one. E.g. in
static int a = 0, b = 0, c = 0, d = 0;
...
... a+b+c+d ...
...
egcs-2.91.66 indeed doesn't seem to make this optimization on i386.
(Maybe the pointer increment or pointer offset solution would
actually be slower - didn't check.) But I'm not sure if this is also
true for other versions/architectures, or other code constructs.
- Werner
--
_________________________________________________________________________
/ Werner Almesberger, ICA, EPFL, CH [EMAIL PROTECTED] /
/_IN_N_032__Tel_+41_21_693_6621__Fax_+41_21_693_6610_____________________/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/
- Re: Universal debug macros. Elmer Joandi
- Re: Universal debug macros. Rogier Wolff
- Re: Universal debug macros. Elmer Joandi
- Re: Universal debug macros. Peter Samuelson
- Re: Universal debug macros. Andrew E. Mileski
- Re: Universal debug macros. Richard B. Johnson
- Re: Universal debug macros. Andrew E. Mileski
- Re: Universal debug macros. Richard B. Johnson
- Re: Universal debug macros. Andrew E. Mileski
- Re: [PATCH] removal of "static foo = 0" Adam J. Richter
- Re: [PATCH] removal of "static foo = 0" Werner Almesberger
- Re: [PATCH] removal of "static foo = 0&qu... David S. Miller
- Re: [PATCH] removal of "static foo = ... Werner Almesberger
- Re: [PATCH] removal of "static foo = ... Andrea Arcangeli
- Re: [PATCH] removal of "static fo... Michael Meissner
- Re: [PATCH] removal of "stat... Andrea Arcangeli
- Re: [PATCH] removal of "... Richard B. Johnson
- Re: [PATCH] removal of "... Andrea Arcangeli
- Re: [PATCH] removal of "... Horst von Brand
- Re: [PATCH] removal of "... Andrea Arcangeli
- Re: [PATCH] removal of "... Alexander Viro

