Reterive addresses of variables of C programs in a file
I have plaintextEdit on which C program will be written ,i am able to reterive the entire program in one input file and also able to find the output of the entire program but i want to extract only variables used in the program with their addresses in another file. Is it possible to reterive all variables with their addresses in one file?? Any help would be appreciable!!!
If you only have the C code, mayby try to find the 'extern' keyword to locate the variables available in different files. Otherwise, you need the linker or object files.
I have C and C++ program only. Do you have any idea for creating the files only for variables and their addresses using linking?