Silverfrost Forums

Welcome to our forums

Is there any subroutine to store all the memory variables

13 Sep 2014 8:16 (Edited: 3 Nov 2014 11:06) #14639

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.

15 Sep 2014 12:16 #14643

No. It's a job you do for yourself, saving the bits you want to save.

16 Sep 2014 4:03 #14645

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.

16 Sep 2014 6:05 #14646

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.

16 Sep 2014 10:25 #14648

... and of course Windows does this when you hibernate.

E

15 Oct 2014 7:22 #14846

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

Please login to reply.