Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!linac!midway!msuinfo!galaxy.cps.msu.edu!chouw From: chouw@galaxy.cps.msu.edu (Wen Hwa Chou) Newsgroups: comp.sys.next Subject: cc compiler problems Message-ID: <1991Apr7.170437.24517@msuinfo.cl.msu.edu> Date: 7 Apr 91 17:04:37 GMT Sender: news@msuinfo.cl.msu.edu Reply-To: chouw@galaxy.cps.msu.edu (Wen Hwa Chou) Distribution: na Organization: Dept. of Computer Science, Michigan State University Lines: 23 Originator: chouw@galaxy.cps.msu.edu There is nothing fancy in the included small C programs. When compiled as "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!!! I don't think this can be called as a FEATURE or ANSI Standard. So, what is the problem and where is the fix? Anybody has any idea? Wen ----------------------------------------------------------------------- main() { double x,y; int i; x=2; y=2; for (i=0; i< 5000000; i++ ) x /= y; printf("%g\n",x); } -----------------------------------------------------------------------