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: Russell Shaw
Subject: Re: [avr-gcc-list] Improving in leaps and skips!
Date: Wed, 02 Mar 2005 10:26:45 +1100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20050105 Debian/1.7.5-1

E. Weddington wrote:
Björn Haase wrote:

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.
Bleah. :-P
I wouldn't even know why that would even be used.

It would make it easy to convert large pascal code.




reply via email to

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