[Solved] Data Structure of Class [closed]
The compiler assigns offsets to all members, and includes these in all load/store operations on members: struct foo { uint32_t bar; uint32_t baz; uint32_t get_baz() { return baz; } }; uint32_t get_baz_from_foo(foo *f) { return f->baz; } becomes (ARM assembler code used for simplicity): foo__get_baz: ; calling convention: this pointer in r3 ; load 32 … Read more