Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!amdcad!uport!admin!jmsully From: jmsully@admin.UUCP (John M. Sully) Newsgroups: comp.lang.c,comp.unix.xenix Subject: Re: uPort 1.3 cc static char * Message-ID: <167@admin.UUCP> Date: Mon, 30-Nov-87 19:03:28 EST Article-I.D.: admin.167 Posted: Mon Nov 30 19:03:28 1987 Date-Received: Fri, 4-Dec-87 04:40:22 EST References: <471@petro.UUCP| <1253@laidbak.UUCP| Reply-To: jmsully@admin.UUCP (John M. Sully) Organization: Microport Systems, Scotts Valley, CA Lines: 18 Xref: mnetor comp.lang.c:5668 comp.unix.xenix:1241 In article <1253@laidbak.UUCP| daveb@laidbak.UUCP (Dave Burton) writes: |In article <471@petro.UUCP| jrb@petro.UUCP (Jon Boede) writes: ||I sent some code over to an AT running Microport XENIX 1.3 ... when using the ||-Ml (large) model the following crashed and burned... || ||main() ||{ || char *a_pointer; || a_pointer = "some static data"; || puts(a_pointer); ||} || ||However, when I change a_pointer to "static char *a_pointer" it works. Why? Well, I compiled this here at Microport (we're still shipping the 1.3 cc) and it worked fine in both large and small model. The command line I used was: cc -Ml bug.c when I typed a.out, it ran! :-)