In reference to this question: How are variable names stored in memory in C?
It is explained that in C, the compiler replaces variable names from code with actual memory addresses.
Let's take C++. I wonder how object properties are accessed in that context?
obj.prop
So obj gets replaced by the actual memory address. Does the compiler then replace prop with some sort of offset and add it to obj - ultimately replacing the whole expression with an absolute address?