Hi,
I wonder if the TI C++ compiler/linker is capable of inlining virtual member function calls given that only one class implementing that virtual function is instantiated in a statically linked program.
We want to write well testable code and are therefore currently concerning writing pure virtual interface classes for almost every class. We hope that we will be able to easily exchange those classes with mock-up implementations while testing. However, we are worried that we will see a massive drop in performance in our release build when enforcing this design rule because the compiler might not be able to inline most of our function calls anymore.
Is this a valid concern? If so, how would you write unit tests without making use of virtual functions?