Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!sol.ctr.columbia.edu!emory!hubcap!ncrcae!sauron!nncrcae!wescott From: wescott@ncrcae.Columbia.NCR.COM (Mike Wescott) Newsgroups: comp.sys.ncr Subject: Re: Informix 4gl and C optimizer Message-ID: <1990Dec22.140706.25200@nncrcae.Columbia.NCR.COM> Date: 22 Dec 90 15:49:48 GMT References: <1990Dec14.035146.18882@seachg.uucp> Organization: E&M-Columbia, NCR Corp, W Columbia, SC Lines: 14 In article <1990Dec20.140514.6995@seachg.uucp> jalsop@seachg.UUCP (John Alsop) writes: > Unfortunately this kind of code can't really be optimized anyway, so all > the work is for nothing! It is, however, easy to avoid this behavior and still get the benefits of the optimizer. Use the following command line: cc -O2 -W2,-N .... The -N passed to optim turns off constant analysis. -- -Mike Wescott mike.wescott@ncrcae.Columbia.NCR.COM