From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,45b50f14dadfce5b X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,45b50f14dadfce5b X-Google-Attributes: gid1164f8,public X-Google-Thread: 110292,45b50f14dadfce5b X-Google-Attributes: gid110292,public From: michael.williams@arm-sponge.com (Michael Williams) Subject: Re: Final kick at the "Merced Guessing Game" Date: 1997/10/03 Message-ID: <612fme$43s@sis.cambridge.arm.com>#1/1 X-Deja-AN: 277544068 X-Disclaimer: This posting does not express the views of Advanced RISC Machines Limited, unless explicitly stated. References: <3431A2DB.4273@EasyInternet.net> <60ui2q$33a$1@cdn-news.telecom.com.au> <60vj9p$7mg@vidar.diku.dk> <610gbg$k3t@deadzone.rsn.hp.com> X-Address: 90 Fulbourn Road, Cherry Hinton, Cambridge, CB1 4JN, UK Organization: Advanced RISC Machines Ltd X-Note: Remove the word "sponge" from my email address before replying Reply-To: michael.williams@arm-sponge.com Newsgroups: comp.sys.intel,comp.arch,comp.sys.dec In article <610gbg$k3t@deadzone.rsn.hp.com>, Patrick F. McGehearty wrote: > That is, >after a couple of days of computing, you don't know if the compiler is >in an infinite loop or still computing. The "couple of days" is not an >exaggeration. I've seen a 1000 line program take over a day due to a >single unbounded non-linear optimization algorithm. I once discovered a case where our compiler's CSE would take O(e^N) to compile code, where N was the number of variables in the expression. (The code was x5=x1+x2+x3+x4; x6=x2+x3+x4+x5; ... x4=xN+x1+x2+x3.) I calculated that a simple 52 line program would take order of 250 years per line to compile. Needless to say, it got fixed. Mike.