//更新后
// 更新前
引用:x64
int age = 6;
mov dword ptr [rbp+4],6
int &rAge = age;
lea rax,[rbp+4]
mov qword ptr [rbp+28h],rax
rAge = 10;
mov rax,qword ptr [rbp+28h]
mov dword ptr [rax],0Ah
指针:x64
int a = 6;
mov dword ptr [rbp+4],6
int *p = &a;
lea rax,[rbp+4]
mov qword ptr [rbp+28h],rax
*p = 6;
mov rax,qword ptr [rbp+28h]
mov dword ptr [rax],6
ps:上面为个人实践,以下为听课截图注解