Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!ucsd!ucbvax!RICHTER.MIT.EDU!krowitz From: krowitz@RICHTER.MIT.EDU (David Krowitz) Newsgroups: comp.sys.apollo Subject: Re: Bug in pas compiler Message-ID: <9010152031.AA01009@richter.mit.edu> Date: 15 Oct 90 20:31:07 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 42 Here are my results from a DN3000 running SR10.2 (Pascal 8.7) $ pas bug.pas -opt 0 No errors, no warnings, no info msgs, Pascal compiler 68K Rev 8.7(271) $ bug.bin 1 1 $ pas bug.pas -opt 1 No errors, no warnings, no info msgs, Pascal compiler 68K Rev 8.7(271) $ bug.bin 1 1 $ pas bug.pas -opt 2 No errors, no warnings, no info msgs, Pascal compiler 68K Rev 8.7(271) $ bug.bin 0 1 $ pas bug.pas -opt 3 No errors, no warnings, no info msgs, Pascal compiler 68K Rev 8.7(271) $ bug.bin 0 1 $ pas bug.pas -opt 4 No errors, no warnings, no info msgs, Pascal compiler 68K Rev 8.7(271) $ bug.bin 0 1 Moral of the story: There appears to be a bug in the Pascal optimizer (what else is new?) for optimization levels 2, 3, and 4. I believe that the default optimization level for all Apollo compilers used in the Aegis environment is opt level 3. -- David Krowitz krowitz@richter.mit.edu (18.83.0.109) krowitz%richter.mit.edu@eddie.mit.edu krowitz%richter.mit.edu@mitvma.bitnet (in order of decreasing preference)