Home > Back-end >  Ask, where the variable name is stored?
Ask, where the variable name is stored?

Time:01-21

The following figure, a memory address, memory inside put things there are, however, ABC this three variables stored in where?
Or ABC don't be put into memory, it is just easy for programmers to read provides syntactic sugar?

CodePudding user response:

The variable name exists in
The source code
The compiler
PDF files
.
In the

CodePudding user response:

Correct the upstairs
PDF files -> PDB files

CodePudding user response:

Obj file should also count

CodePudding user response:

A, b, c does not exist, the compiled are address, variable is a high-level language provides a means of operating address, become a low-level language, is the value of the variable directly to move variables corresponding to the address of the
For example,
A=1, is a mov address 1

CodePudding user response:

reference 4 floor qybao response:
a, b, c does not exist, the compiled are address, a variable is a high-level language provides a means of operating address, become a low-level language, is the value of the variable directly to move variables corresponding to the address of the
For example,
A=1, it is a mov address 1

Hello, this is I learn assembly

CodePudding user response:

Local variables stored in the function in the stack,


Global and static variables stored in a data segment

And heap, is space in the heap to dynamic applications