Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!batcomputer!caen!zaphod.mps.ohio-state.edu!swrinde!mips!spool.mu.edu!uwm.edu!bionet!agate!mindseye!izumi From: izumi@mindseye.berkeley.edu (Izumi Ohzawa) Newsgroups: comp.sys.next Subject: Re: cc compiler problems Message-ID: <1991Apr12.185839.15689@agate.berkeley.edu> Date: 12 Apr 91 18:58:39 GMT References: <9104090229.AA27828@nextasy2.eecs.wsu.edu> <1991Apr9.051123.8923@nntp-server.caltech.edu> Sender: usenet@agate.berkeley.edu (USENET Administrator) Organization: /etc/organization Lines: 40 In article <1991Apr9.051123.8923@nntp-server.caltech.edu> madler@nntp-server.caltech.edu (Mark Adler) writes: > >I had someone at NeXT try that program on a 68040 running version 2.1 of >the operating system (with -O), and it did not crash the machine. I will >verify this when I get my 2.1 upgrade. The reason 2.1 might be expected I veryfied that myself just now. The following program, compiled with "cc -O -o strange strange.c" does not crash 040 cube running 2.1. So, upgrade to 2.1. It will fix other things even if you have monochrome station or cube. ---- From a previous posting by: chouw@galaxy.cps.msu.edu (Wen Hwa Chou) >"cc -o starnge strange.c" everything is OK. But when I tried it as >"cc -O -o strange strange.c" than the Slab is gone - I mean totally gone. >I would not even respond to the cmd-cmd-~ sequence. The only way to recover >it is by UNPLUG/PLUG!!! ----------------------------------------------------------------------- main() { double x,y; int i; x=2; y=2; for (i=0; i< 5000000; i++ ) x /= y; printf("%g\n",x); } ----------------------------------------------------------------------- Izumi Ohzawa [ $@Bg_78^=;(J ] USMail: University of California, 360 Minor Hall, Berkeley, CA 94720 Telephone: (415) 642-6440 Fax: (415) 642-3323 Internet: izumi@violet.berkeley.edu NeXTmail: izumi@pinoko.berkeley.edu