Is there a way to get all the variables declared by a program in RAM and save
them in a file?