Is there any routines that stores all the variables inside a program.
I just need the data segment, those are located in common blocks and those not located on common blocks.
Welcome to our forums
Is there any routines that stores all the variables inside a program.
I just need the data segment, those are located in common blocks and those not located on common blocks.
No. It's a job you do for yourself, saving the bits you want to save.
Was there any compiler not necessarily Fortran which have done that? I find it as very very very useful feature. I've heard in 70th about some IBM OS which has done a blind dump of everything in RAM memory to the disk. That was useful for continuation of interrupted tasks. But ability of dumping of all variables and loading them back would be even more useful specifically for debugging. I have done that myself in the early times of my code when it was small and manageable but currently I'm completely lost in the thousands of variables and parameters. Even then finding some hidden bug took me weeks of painful comparisons. Now I stopped adding variables to the dumping subroutines and just do frequent Fortran text backups to have a chance to return back quickly because finding some superbug became slave's on plantation job. This is also why I use this compiler not any other, I'd stopped programming long ago with bad diagnostics Fortrans, not even mentioning C.
Quoted from DanRRight Was there any compiler not necessarily Fortran which have done that? ...ability of dumping of all variables and loading them back would be even more useful specifically for debugging.
PL/I supports data directed input and output.
... and of course Windows does this when you hibernate.
E
Quoted from DanRRight Was there any compiler not necessarily Fortran which have done that? I find it as very very very useful feature. I've heard in 70th about some IBM OS which has done a blind dump of everything in RAM memory to the disk. That was useful for continuation of interrupted tasks. But ability of dumping of all variables and loading them back would be even more useful specifically for debugging. I have done that myself in the early times of my code when it was small and manageable but currently I'm completely lost in the thousands of variables and parameters. Even then finding some hidden bug took me weeks of painful comparisons. Now I stopped adding variables to the dumping subroutines and just do frequent Fortran text backups to have a chance to return back quickly because finding some superbug became slave's on plantation job. This is also why I use this compiler not any other, I'd stopped programming long ago with bad diagnostics Fortrans, not even mentioning C.
You may be thinking of something called a CORE DUMP. Back in the day, when a program abended, the system dumped the contents of memory (called the core) to $STDLIST