Shop OBEX P1 Docs P2 Docs Learn Events
Pure Virtual Functions — Parallax Forums

Pure Virtual Functions

BlackSoldierBBlackSoldierB Posts: 45
edited 2014-05-14 01:30 in Propeller 1
I was adding some more structure to my program and something weird occurred.
First i added a interface for my "Test" (rather small) class and create some (also small) classes who derived from the interface.
Everything is going fine, but when i added a interface for an other (somewhat large) class the program didn't fit in the memory anymore (overflow by 32K).

After replacing the pure virtual functions with a "normal" virtual function, and adding an empty implementation, everything fits inside the memory again.
Putting the "somewhat large class" implementation into the header produces the same result.

I am curious why the memory usage grows with that much memory. My guess is that the compiler optimizes "something" for more than 32K.
Anyone experienced this before?

Comments

Sign In or Register to comment.