Open huangguiyang opened 7 years ago
struct S { int a, b; }; void bar(struct S); void foo() { struct S s; bar(s); }
According to the amd64 ABI,the whole s is passed by register rdi. 😒
s
rdi
yes, I passed its address~
It is tooooooooo complicate of AMD64 ABI to pass a struct......
According to the amd64 ABI,the whole
s
is passed by registerrdi
. 😒