Xref: news2.mv.net comp.os.msdos.djgpp:4927 From: Lennart Steinke Newsgroups: comp.os.msdos.djgpp Subject: How to tell djgpp NOT to optimate a line of code Date: Thu, 13 Jun 1996 13:12:58 -0500 Organization: InterNetNews at News.BelWue.DE (Stuttgart, Germany) Lines: 27 Message-ID: NNTP-Posting-Host: zeus.adv-boeblingen.de Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Hi! I wrote a ISR which hook into the timer interrupt and updates a global variable. say this var is ... my code looks something like int b; b=g; while (b==g); this loop is always optimazed to while(1); ist there a possibilty to tell gcc not to touch the code (similar to the __volatile__ keyword)? Lenny -- Lennart Steinke (steinke AT adv-boeblingen DOT de)