Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Misc > Re: Saving prog...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 7 of 9 Topic 746 of 806
Post > Topic >>

Re: Saving program state in executable

by Marco van de Voort <marcov@[EMAIL PROTECTED] > Jun 17, 2007 at 10:57 AM

On 2007-06-16, Peter Brooks <Peter.H.M.Brooks@[EMAIL PROTECTED]
> wrote:
> I imagine that this is probably platform dependent. What I'd like to
> do, though, is to run a program and save its state, so that, when it
> is run again, it starts where it left off, even if the machine has
> been re-booted between times.

Then you would have to freeze the entire program and kernel. Which is
awfully hard. (also part of the kernel state, since at the moment of
freezing the program could be communicating with the kernel, though
probably
some very small limitations could solve that).

The classic solution under Unix is a core dump of a process. (a dump of
the
memory). IIRC EMacs distribution used to be based on it. (startup, then
coredump, and then always start the coredump, saving the LISP startup
overhead).

> Is there a platform independent way of doing this? Or, maybe more
> sensibly, are there equivalent ways of doing this in various systems
> that can be set with compile switches?

No. This is kernel stuff, so you will probably need a way to tell the
kernel
to dump/reload a process from/to a dump. But this is an black art, not
something simple.
 




 9 Posts in Topic:
Saving program state in executable
Peter Brooks <Peter.H.  2007-06-16 20:33:55 
Re: Saving program state in executable
CBFalconer <cbfalconer  2007-06-16 20:18:03 
Re: Saving program state in executable
"Chris Burrows"  2007-06-17 11:47:18 
Re: Saving program state in executable
Peter Brooks <Peter.H.  2007-06-16 20:37:14 
Re: Saving program state in executable
Marco van de Voort <ma  2007-06-17 16:56:37 
Re: Saving program state in executable
Peter Brooks <Peter.H.  2007-06-16 20:58:03 
Re: Saving program state in executable
Marco van de Voort <ma  2007-06-17 10:57:22 
Re: Saving program state in executable
CBFalconer <cbfalconer  2007-06-17 09:37:47 
Re: Saving program state in executable
Marco van de Voort <ma  2007-06-17 16:57:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 6:06:15 CDT 2008.