Re: A lint classic

From: Rick Merrill (
Date: 06/02/04

Date: Tue, 01 Jun 2004 23:47:59 GMT

Oliver Betz wrote:
> Rick Merrill <> wrote:
>>>new_var = var << 16000; !!!
>>I've SEEN that code before: it used the most
>>stable 'clock' in the h/w to create a delay!!
> Until the new compiler release optimizes away the statement silently.
> Delays shouldn't be done by HLL loops. Only assembler code or hardware
> counters should be used.

No joke! (I didn't say it was my code! It was in a code review - a
la the OP's example)