adplus-dvertising
frame-decoration

Question

How do some compilers such as G++ pass the this pointer to a nonvirtual member function?

a.

They use the ECX register

b.

They push it into the stack as the first parameter

c.

They do not pass it at all

d.

None of the above

Posted under Reverse Engineering

Answer: (b).They push it into the stack as the first parameter Explanation:Some compilers such as G++ push the this pointer into the stack as the first parameter.

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. How do some compilers such as G++ pass the this pointer to a nonvirtual member function?