In this episode, we will see how invoking a virtual function in C++ translates into assembly instructions. We will see how our class instance is constructed and how it relates to the vtable. Then, we will see how this vtable is used to call the appropriate function.
If you have actually built the project and analyzed the binary in the previous episode, don’t forget to remove the
-fno-rttioption and to rebuild the project. I will use this binary as a reference here.