Hello,
For virtual functions, I previously thought the c++ compiler would create a function lookup table, possibly in RAM. After creating a simple test case with several classes derived from a base class, I noticed the code jumps directly to each derived class function that was declared as virtual in the base class.
Should I expect this always to be the case?
The reason I ask is, as a safety concern, I don't want to have function pointers in RAM.
Thanks
Stephen