Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!usc!apple!snorkelwacker.mit.edu!bloom-beacon!deccrl!news.crl.dec.com!pa.dec.com!src.dec.com!David Goldberg From: goldberg@parc.xerox.com (David Goldberg) Newsgroups: comp.lang.modula3 Subject: optimization and garbage collection Message-ID: <91Jan2.131022pst.3117@arcturia.parc.xerox.com> Date: 2 Jan 91 21:10:19 GMT Lines: 11 To: m3 This is on SPARCs. I compiled the "m3compile" program using cc -O, and when I used the resulting compiler, I got random behavior: when repeatedly compiling the same program, sometimes that program would compile correctly, and sometimes not. When I patched collection_allowed to be 0, compiles always worked. This is true with both gcc (1.37.1) and the Sun C compiler (SparcCompiler 1.1 beta). Has anybody tried compiling m3compile with optimization and gotten it to work reliably? David Goldberg