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, IIIMessage
Re: [AVR-Chat] Re: What does this error mean?
2005-02-22 by Robert Adsett
Attachments
- No local attachments were found for this message.