On Mon, 24 Apr 2006, David Turner wrote: > Behdad Esfahbod a écrit : > > Note that even moving from .data to .rodata is desirable anyway, > > even if it doesn't result in reduced memory consumption, it does > > result in reduced relocations which is good. > > > > > Behdad, could you elaborate about this ? I thought that relocations were > only found on pointers, > and given that "constant" pointers in PIC code must be stored in > writable memory to be fixed up, > I don't see why moving from .data to .rodata would result in any > reduction in relocations ?
Indeed constant pointers end up in .data. What I was suggesting is to get rid of the pointer by for example replacing "const char *x" by "const char x[4]" where you have a list of two-letter language tags for example... But you already know that. :) > not to say that reducing the size of .data isn't desirable regarding > page sharing though. > > Regards, > > - David --behdad http://behdad.org/ "Commandment Three says Do Not Kill, Amendment Two says Blood Will Spill" -- Dan Bern, "New American Language" _______________________________________________ Performance-list mailing list [email protected] http://mail.gnome.org/mailman/listinfo/performance-list
