Restarting the program

Hi,

I use gfortran to run the code. Some times I need to stop the program
and restart it. On restarting I need to run the program from the beginning.

Is there any script or option available to restart the program from where
it stopped? This script/option will be immensely useful for programmers.

Thanks,
Rakesh

Just sleep() your program, then wake up it when you need.

I don't know any low level programming techniq but I know you could realise what you want if you save all program data, and registers on stack.

The Program Stack