tinycc-devel
[Top][All Lists]
Advanced

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

Re: [Tinycc-devel] Local procedures


From: Antti-Juhani Kaijanaho
Subject: Re: [Tinycc-devel] Local procedures
Date: Wed, 12 Sep 2007 14:10:19 +0300
User-agent: Mutt/1.5.16 (2007-06-11)

On Wed, Sep 12, 2007 at 12:54:16PM +0200, Zdenek Pavlas wrote:
> Even if you really need a trampoline, you don't need a fancy compiler for 
> that.  It's easy to implement (at least on i386) using the existing support 
> for attribute(regparm).  Real closures in C- way more fun than gcc's nested 
> functions, which are quite limited and (rightfully, IMO) seldom used.

Except that what your example program does is not a real closure.  You
*do* need compiler support for them.

-- 
Antti-Juhani Kaijanaho, Jyväskylä
http://antti-juhani.kaijanaho.fi/newblog/
http://www.flickr.com/photos/antti-juhani/




reply via email to

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