Re: Add nested-function support in a language the based on a stack-machine

Shoefoot <shoefoot@gmail.com>
Wed, 14 Feb 2018 12:27:16 -0800 (PST)

          From comp.compilers

Related articles
| List of all articles for this month |

From: Shoefoot <shoefoot@gmail.com>
Newsgroups: comp.compilers
Date: Wed, 14 Feb 2018 12:27:16 -0800 (PST)
Organization: Compilers Central
References: 18-02-009
Injection-Info: gal.iecc.com; posting-host="news.iecc.com:2001:470:1f07:1126:0:676f:7373:6970"; logging-data="86680"; mail-complaints-to="abuse@iecc.com"
Keywords: code
Posted-Date: 14 Feb 2018 15:32:04 EST

On Monday, February 12, 2018 at 3:51:19 PM UTC-5, dror....@gmail.com wrote:
> one, using an activation-link (also called static-link), and display.


I'm a big fan of Display stacks. They are easy to implement and fast at runtime.
However they do break down with setjmp/longjmp. The Display stack becomes
part of the state and must be pushed with the setjmp. There is also some
considerations for the debugger. The debugger has to walk the stack rather than
use the Display.



Post a followup to this message

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