From mboxrd@z Thu Jan 1 00:00:00 1970 From: jmbw@nather.com (Markus Weber) Date: Wed, 1 Oct 2003 16:07:34 -0500 Subject: [TUHS] Re: 4.3 BSD version in the Unix Archive In-Reply-To: <20031001165600.32320.qmail@web10010.mail.yahoo.com> Message-ID: >From: Kenneth Stailey [mailto:kstailey at yahoo.com] >My first guess would be that there should be more "volatile" keywords used. I >think the printf()s cause the compiler to not discard some varibles. Does it >work without the printf()s if you don't use "-O" (or "-O2", etc) optimization? >I think gcc does not elminitate varibles ever when the code is not optimized. Doesn't seem to make a difference, but I'll double-check. I could be wrong, but I believe the printf will return as soon as the physical output of the message has started - if so, it can very conceivably affect the "real-time" behaviour of the code interfacing with the RQDX3. Just a guess. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.520 / Virus Database: 318 - Release Date: 9/18/2003