Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!ugle.unit.no!nuug!isncr!ra From: ra@intsys.no (Robert Andersson) Newsgroups: comp.sys.ncr Subject: Re: Informix 4gl and C optimizer Message-ID: <1990Dec20.141936.3757@intsys.no> Date: 20 Dec 90 14:19:36 GMT References: <1990Dec14.035146.18882@seachg.uucp> Organization: International Systems A/S, Oslo, Norway. Lines: 26 jalsop@seachg.uucp (John Alsop) writes: >The first try at compiling the application on a Tower 600 with 3.00.01 ran >for over 7 hours without finishing. No-one was too impressed. >A brief analysis of the compilation of one of the modules showed that the >actual compilation from 4GL to C to assembler took about 45 seconds. The >optimizer then started up and ran for about an hour! The C compiler optimizer in the 3.00.01 release seems to have trouble with very big functions. Handwritten code normally is split into small functions, so that works ok. But code output from yacc, lex and obviously also from Informix 4GL typically is one *huge* function, and hence steps on the bug. I have had the same problem you describe happen with a lot of freely distributable sources. Both perl and kermit spring to mind. I normally do one of: a) Use the 2.01.01 compiler. b) Specify -O1. c) Use gcc instead. This is what I recommend. Regards, Robert. -- Robert Andersson Voice +47 2 371055 International Systems A/S ra@intsys.no Fax +47 2 356448 P.O. Box 3356 ..!{uunet,mcsun,nuug}!intsys.no!ra 0405 Oslo 4, NORWAY