English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Ok, this is probably an odd question, but say I use a tool to view the integers of a program in my memory addresses. Like right now, Firefox is storing 12 in 16AAAE. Is there a way to find out the variable name stored there?

2006-07-28 02:16:43 · 3 answers · asked by Kelly M 1 in Computers & Internet Programming & Design

To rephrase that last part, the variable name of the integer stored there.

2006-07-28 02:26:19 · update #1

Alright, thanks guys.

2006-07-28 03:23:50 · update #2

3 answers

Not possible.

When source code gets compiled into an executable in release mode, (that is the case for most applications) all debugging related information are stripped off so you are left with aggressively optimized assembly code.

With a debugger / assembler you can analyze each section of the codes to find the meaning, but there is no way to retrieve the information such as source code, variable names etc unless the program is compiled in debug mode.

2006-07-28 03:07:03 · answer #1 · answered by Sanford 1 · 0 1

not 100% sure but from what i know it would be really hard to find the variable assigned to that memory location unless you can add code to the application you are running to display the memory location of each variable. the reason being that when a variable is declared in a program it is randomly assigned a location in the RAM and only the program would know where it was stored so say when FireFox sets say x=12 the RAM stored 12 to the address 16AAAE and knows it belongs to firefox and Firefox know that x= the number in the RAMs address of 16AAAE.

i hope that makes sense.

2006-07-28 09:42:01 · answer #2 · answered by Nick H 3 · 0 0

yeah like the other guys have said, it is impossible. Basically since when you compile a program, all the fancy variable names you tag along the program is stripped away and is not used in a compiled code. So basically, you can't search what the variable name of a variable for a compiled code.

2006-07-28 11:38:29 · answer #3 · answered by Lie Ryan 6 · 0 0

fedest.com, questions and answers