Re: nested functions

"Tommy Thorn" <tommy.thorn@gmail.com>
31 Aug 2006 15:39:11 -0400

          From comp.compilers

Related articles
nested functions reji_thomas@symantec.com (2006-08-29)
Re: nested functions tommy.thorn@gmail.com (Tommy Thorn) (2006-08-30)
Re: nested functions ian@airs.com (Ian Lance Taylor) (2006-08-30)
Re: nested functions torbenm@app-0.diku.dk (2006-08-30)
Re: nested functions tommy.thorn@gmail.com (Tommy Thorn) (2006-08-30)
Re: nested functions reji_thomas@symantec.com (2006-08-31)
Re: nested functions tommy.thorn@gmail.com (Tommy Thorn) (2006-08-31)
Re: nested functions marcov@stack.nl (Marco van de Voort) (2006-09-06)
Re: nested functions tommy.thorn@gmail.com (Tommy Thorn) (2006-09-06)
Re: nested functions Jatin_Bhateja@mentor.com (Jatin Bhateja) (2006-09-08)
Re: nested functions 148f3wg02@sneakemail.com (Karsten Nyblad) (2006-09-08)
Re: nested functions foobar@nowhere.void (Tommy Thorn) (2006-09-08)
Re: nested functions torbenm@app-3.diku.dk (2006-09-08)
[1 later articles]
| List of all articles for this month |
From: "Tommy Thorn" <tommy.thorn@gmail.com>
Newsgroups: comp.compilers
Date: 31 Aug 2006 15:39:11 -0400
Organization: http://groups.google.com
References: 06-08-14006-08-147 06-08-150
Keywords: design, functional
Posted-Date: 31 Aug 2006 15:39:11 EDT

reji_thomas@symantec.com wrote:
> Thanks a lot for the replies. I will go through the papers Tommy
> mentioned. Will be back with more questions :).
>
> Also if there are other materials which will help , please do post the
> same.


I realized a different way to explain this: lambda lifting will work
for the Pascal case, as long as the lifted variables (which are
modified) are passed by reference. This is exactly how you'd typically
hand-translate Pascal to C.


This is vaguely related to the Algol discussions here and on comp.arch.


I can't think of any realistic examples where static chaining or
displays will be better than lambda lifting assuming a decent compiler
and modern architecture (w/lots of registers).


Tommy


Post a followup to this message

Return to the comp.compilers page.
Search the comp.compilers archives again.