Forum Discussion
Altera_Forum
Honored Contributor
9 years agoHello Johi,
Thank you for your answer. I am really interested in this behaviour. When i remove the destructor, the memory my program uses is nearly the same as written in C without classes. But when i add the destructor and compare the .map file with and without destructor, i see a lot of c++ classes linked (mostly libstdc++). The virtual keyword isn't the problem here. Without it the code it is still too much. Is there an explanation what the compiler does? Also, will I meet any "strange" behaviour when i remove the destructor? Say i create a function that deallocates memory.