Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!utgpu!water!watmath!clyde!rutgers!husc6!uwvax!uwmacc!uwspan!root From: root@uwspan.UUCP Newsgroups: comp.lang.c,comp.unix.xenix Subject: uPort 1.3 cc static char * Message-ID: <194@uwspan.UUCP> Date: Tue, 17-Nov-87 17:47:39 EST Article-I.D.: uwspan.194 Posted: Tue Nov 17 17:47:39 1987 Date-Received: Fri, 20-Nov-87 23:46:45 EST References: <471@petro.UUCP> Sender: news@uwspan.UUCP Reply-To: root@uwspan.UUCP (John Plocher) Followup-To: comp.lang.c Distribution: na Organization: UW-Madison Spanish Dept Lines: 27 Xref: utgpu comp.lang.c:5187 comp.unix.xenix:1015 +---- jrb@petro.UUCP (Jon Boede) writes in <471@petro.UUCP> ---- | 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? +---- First of all, the Microport System5r2 port is *not* XENIX :-), Secondly it does NOT crash and burn on my system. (Configuration: Prog dev 1.3 and DosMerge 2.3 kernel, 4 users on at the time, 3Mb RAM, 140Mb disk space...) Saved this file as x.c, edited off the message text, Compiled with: "cc -o x -Ml x.c" (no warning or error messages) run as: "./x" output: "some static data" (quotes are mine) -- Email to unix-at-request@uwspan with questions about the newsgroup unix-at, otherwise mail to unix-at@uwspan with a Subject containing one of: 386 286 Bug Source Merge or "Send Buglist" (Bangpath: rutgers!uwvax!uwspan!unix-at & rutgers!uwvax!uwspan!unix-at-request)