Intermediate Assembly Language
Q87 / 100

What is a vtable call in assembly terms?

Correct! Well done.

Incorrect.

The correct answer is B) An indirect call through a pointer stored in a table: MOV RAX, [RCX]; CALL [RAX + offset]

B

Correct Answer

An indirect call through a pointer stored in a table: MOV RAX, [RCX]; CALL [RAX + offset]

Explanation

C++ virtual dispatch: MOV RAX, [RCX] loads the vptr; CALL [RAX + n*8] calls the n-th virtual function. Two memory indirections vs one for non-virtual calls.

Progress
87/100