From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: To: 9fans@cse.psu.edu Subject: Re: [9fans] constant string From: C H Forsyth In-Reply-To: <15d2f5fb6672706b232a46affc5b710e@yourdomain.dom> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Date: Mon, 8 Mar 2004 15:22:12 +0000 Topicbox-Message-UUID: 239903c4-eacd-11e9-9e20-41e7f4b1d025 the plan 9 compilers, in the main, don't put constant strings into read-only segments, though they could (easiest on most platforms that aren't separate I&D or x-only text would be to pop them into the text segment). on the other hand, you'd probably then need something like gcc's -fwritable-strings to cope with older C programs that wrote to them (and some did), although that need would mainly be limited to ape. (i haven't noticed plan 9 programs that do it, and i've ported quite a few to other platforms.)