avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Improving in leaps and skips!


From: Björn Haase
Subject: Re: [avr-gcc-list] Improving in leaps and skips!
Date: Tue, 1 Mar 2005 20:40:50 +0100
User-agent: KMail/1.7.1

> I'm not familiar with the test suite, and I'm curious: Where do these
> "nested functions" tests come from? That's not a C language feature. Is
> it C++?
>
> Eric

There is an extension to the c-language that is supposed to be supported by 
all gcc targets. The idea is to support functions inside functions so that 
e.g. something like

int 
foo3 ( int func(int), int a)
{ return a + a * func (27);
}
 
void
foo (int a, int b)
{
     int
     foo2 (int c)
     { return c + b;
      }

     return foo3 (&foo2, a);
}

is considered to be legal code for gcc. The avr port does presently lack 
support for this extension.

Yours,

Björn




reply via email to

[Prev in Thread] Current Thread [Next in Thread]