Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

Re: [AVR-Chat] Re: What does this error mean?

2005-02-22 by Robert Adsett

At 02:22 PM 2/22/05 -0500, ethan@bufbotics.org wrote:
>I agree with what you're saying, but I think there's a condition you may
>have omitted....
>
>
>void func (void) {
>{
>     if (THIS_CONDITION_EVALUATES_TO_FALSE) {
>
>         for (int i=0; i<x; i++) {
>             for (int j=0; j<y; j++) {
>             }
>         }
>     }
>}


You are assuming the compiler generates different code for this case.  Have 
you verified that it does?  I would expect most compilers to generate the 
same code in either case since a) it's probably faster and b) probably less 
code room and c) has no effect on the worst case stack usage.

Robert

" 'Freedom' has no meaning of itself.  There are always restrictions,
be they legal, genetic, or physical.  If you don't believe me, try to
chew a radio signal. "

                         Kelvin Throop, III

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.