Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!exodus!rbbb.Eng.Sun.COM!chased From: chased@rbbb.Eng.Sun.COM (David Chase) Newsgroups: comp.lang.modula3 Subject: Re: optimization and garbage collection Message-ID: <5142@exodus.Eng.Sun.COM> Date: 3 Jan 91 00:47:39 GMT References: <91Jan2.131022pst.3117@arcturia.parc.xerox.com> Sender: news@exodus.Eng.Sun.COM Organization: Sun Microsystems, Mt. View, Ca. Lines: 13 goldberg@parc.xerox.com (David Goldberg) writes: > [with "cc -O" of m3compile, I got random behavior until I turned > off the garbage collector.] Please note that this is very probably not a bug in the optimizer; such behavior was predicted over 3 years ago. This is one of the hazards of using C as an intermediate language. (I'm trying very hard not to gloat too much.) As a workaround, you might try (for Sun's compiler) "cc -O1". David Chase Sun Microsystems, Inc.