Path: utzoo!telly!attcan!seachg!jalsop From: jalsop@seachg.uucp (John Alsop) Newsgroups: comp.sys.ncr Subject: Informix 4gl and C optimizer Message-ID: <1990Dec14.035146.18882@seachg.uucp> Date: 14 Dec 90 03:51:46 GMT Reply-To: jalsop@seachg.UUCP (John Alsop) Organization: Sea Change Corporation, Mississauga, Ontario, Canada Lines: 29 I ran across an interesting problem today which might be of interest to other Tower users. A client has an application written in Informix 4GL. It consists of 25 source modules, and takes about an hour to compile on another Unix box comparable to the Tower. The compilation process involves generating C code from the 4GL source, and then compiling the C into an executable. 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! Changing the default optimization level from 2 to 0 allowed all 25 modules to be compiled in 40 minutes. I'm curious as to why the code generated by Informix' 4GL should cause such pathological behaviour of the optimizer. Ideas anyone? -- John Alsop Sea Change Corporation 6695 Millcreek Drive, Unit 8 Mississauga, Ontario, Canada L5N 5R8 Tel: 416-542-9484 Fax: 416-542-9479 UUCP: ...!uunet!attcan!seachg!jalsop