Re: A lint classic
From: Rick Merrill (RickMerrill_at_comTHROW.net)
Date: 06/02/04
- Next message: Spiney6: "OT: small NetBurner question"
- Previous message: Anthony Fremont: "Re: There is no such thing as a troll-post"
- In reply to: Oliver Betz: "Re: A lint classic"
- Next in thread: Paul Keinanen: "Re: A lint classic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 01 Jun 2004 23:47:59 GMT
Oliver Betz wrote:
> Rick Merrill <RickMerrill@comTHROW.net> 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)
- Next message: Spiney6: "OT: small NetBurner question"
- Previous message: Anthony Fremont: "Re: There is no such thing as a troll-post"
- In reply to: Oliver Betz: "Re: A lint classic"
- Next in thread: Paul Keinanen: "Re: A lint classic"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|