vendredi 24 janvier 2020

When I use variable (e.g x) how the machine know the address of this variable

When I declare a variable like that

Int x = 10

The value of 10 will be assigned in a certain address (e.g 0x00001) in main memory and when I use x the compiler will use the value which saved in address (0x00001) And my question here When I use variable x, how the CPU know the address of x Which mean how the CPU know that the variable x has a value in the address (0x00001)

Aucun commentaire:

Enregistrer un commentaire