Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Re: [Caml-list] Error Reporting
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2001-09-27 (13:00)
From: Damien Doligez <Damien.Doligez@i...>
Subject: Re: [Caml-list] Error Reporting
>From: "David McClain" <>

>I am looking for some ideas on handling program error reporting for a
>compiler that is built largely on CPS. Since there are no stack frames to
>crawl for traceback, I have a first cut based on keeping a finite length
>queue of last visited closures.

It seems to me that the current continuation in a CPS program should
contain the same information as the stack in a stack-based program.
You have the problem of losing information on a tail-call in both
systems, for example.  So you should be able to do as well as a stack
crawl with a "continuation crawl".  Of course, this will depend on the
data structure used to represent continuations, and if you use normal
closures for that, you will be compiler-dependent, but again this is
no worse than the stack-based case.

Or am I missing something ?

-- Damien
Bug reports:  FAQ:
To unsubscribe, mail  Archives: