Roland Mainz <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Quoting Roland Mainz <[EMAIL PROTECTED]>:
> >
> > I am missing something. How is the kernel wasting space with
> > read/write string literals? You say 8-9 MB. How is changing this to
> > read only going to make any difference (except to cause BAD TRAP
> > panics when something tries to modify the literal)?
>
> From cc(1):
> -- snip --
> -xstrconst
> Inserts string literals into the read-only data section
> of the text segment instead of the default data seg-
> ment. Duplicate strings will be eliminated and the
> remaining copy shared amongst references in the code.
> -- snip --
> The important part is that duplicate string literals will be removed.
Note that -xstrconst also makes strings read-only and that some programs
might still be unclean with respect to string constants.
If you find a sufficient way to test, I believe that the compilation
could be changed in general.
Jörg
--
EMail:[EMAIL PROTECTED] (home) Jörg Schilling D-13353 Berlin
[EMAIL PROTECTED] (uni)
[EMAIL PROTECTED] (work) Blog: http://schily.blogspot.com/
URL: http://cdrecord.berlios.de/old/private/ ftp://ftp.berlios.de/pub/schily
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code