From: William Josephson <jkw@eecs.harvard.edu>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] constant string
Date: Mon, 8 Mar 2004 17:40:43 -0500 [thread overview]
Message-ID: <20040308224043.GA84717@mero.morphisms.net> (raw)
In-Reply-To: <pan.2004.03.07.05.32.00.621137@hotpop.com>
On Mon, Mar 08, 2004 at 10:15:07AM +0000, Prem Mallappa wrote:
> my question is when i compile this in Linux (gcc) i get a segmentation
>
> but when i compile the same thing in plan9 C compiler ( both native "8c"
> and "pcc" i get a output of "Hezlo")
Try compiling with gcc -fwritable-strings on Linux and see what
happens. By default gcc puts initialized data in a read-only
segment but pcc does not.
next prev parent reply other threads:[~2004-03-08 22:40 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-08 10:15 Prem Mallappa
2004-03-08 10:27 ` lucio
2004-03-08 10:53 ` [9fans] " Richard Bos
2004-03-08 14:13 ` [9fans] " dbailey27
2004-03-08 15:22 ` C H Forsyth
2004-03-09 3:41 ` Russ Cox
2004-03-09 9:17 ` Charles Forsyth
2004-03-08 22:40 ` William Josephson [this message]
2004-03-10 9:47 ` [9fans] " Peter Pichler
2004-03-12 8:56 ` Bruce Ellis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040308224043.GA84717@mero.morphisms.net \
--to=jkw@eecs.harvard.edu \
--cc=9fans@cse.psu.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).