Is variable in C something like label in Assembly? -


Simple question: is there a variable in C is like a label in the C assembly?

Or is there a label assembly like in C in an indicator? Should anyone describe me the differences and equality?

Label in the assembly marks a memory location; This is the static variable of the address of C The exported global variable will be equal if you export the label

There are also local variables in C, which are usually stored in the stack frame of the function call. It is also commonly done in the assembly, so that the stack pointer can be adjusted in the function to make the room (and usually use the register like x86 bp to access them easily ) With the optimization enabled, local variables can also be stored in registers, which are also common in assemblies.

Labeling yourself in the assembly is the location of memory, there is no "variable" like in the assembly, you get the value using the address marked with the label. Stable variable in C means the variable, there is no direct method of making the label in the assembly, you will get the & amp; Get the address with but it really is really the difference.


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

c# - MySQL Parameterized Select Query joining tables issue -