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

Re: Saving the state



me:
> > `saveinitmem' does save the stack to disk

Oops. I meant to say: `saveinitmem' does *not* save the stack to disk.

Ricardo Aler Mur:
> I'd like the image to
> resume execution (when loaded) just at the end of the "(saveinit ...)". 
> The aim is to protect my code against a very unstable electric supply :)
> by saving an image from time to time. 

This is impossible with CLISP.

> Maybe a quick hack at the source code might do. I might try. Any
> suggestions?.

You would have to save the Lisp stack and the C stack. But there is no
portable way to save the C stack, to my knowledge.

                 Bruno