Forum Discussion
Altera_Forum
Honored Contributor
9 years agoc++ class memory consumption
Hello, I am trying to code with cpp and now i started a blank project with a NIOS II/f processor, connected to 16KB onchip RAM, created with QSYS in the NIOS II IDE. I took the generated .sop...
Altera_Forum
Honored Contributor
9 years agoHello Eggi,
I do not see a problem with your code at this time. You are even not declaring any variabeles in your class, so it should be really small. If you think the virtual destructor is the culprit, in this case it is not necessary to have it virtual, so leave the word virtual out. It is even not necessary to program an empty desctructor or a constructor in your class anyway. Normally a lot of information can be found in the .map file that is generated by the linker during the compilation/linking process, here you can estimate code sizes. There is a .BSP editor in Eclispe, this editor lets you modify the sizes of segments. Best Regards, Johi.