From: dzierzaw AT elektryk DOT ie DOT pwr DOT wroc DOT pl (Springman) Newsgroups: comp.os.msdos.djgpp Subject: Crashes when optimized! Date: 13 Jun 1997 08:22:15 GMT Organization: - Lines: 10 Message-ID: <5nqvvn$ptt$1@sun1000.pwr.wroc.pl> NNTP-Posting-Host: shl.ie.pwr.wroc.pl To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Strange problem. My program works perfectly well when compiled with no optimizations and crashes with `Page fault at...., error 0004' when compiled with `-O1' or `-O2'. The function it stops at performs rotation of points. It does use some inline assembly, but everything is `volatile', so shouldn't be messed with by the compiler. Any ideas what it's all about? It's not likely I've found a bug, is it? _______ Springman dzierzaw AT elektryk DOT ie DOT pwr DOT wroc DOT pl