Forum Discussion
Altera_Forum
Honored Contributor
9 years agoOk, here I go again.
I have ported my C code (7kByte) to c++ code now. But.... I have the problem with the code size. I had a look into the map file and came to the conclusion, that from the libstc++.a file, there is a eh_personality.o object file generated which has a size of 26kBytes. I found the documentation on the gnu site: https://github.com/gcc-mirror/gcc/blob/master/libstdc%2b%2b-v3/libsupc%2b%2b/eh_personality.cc , but I am bad at finding the cause of this. Can you help me here? My first guess was, that I use expensive functions, but I couldn't find a function in my code, that is noted in the eh_personality.cc file. I also created several instances of my classes (Class* test = new Class) and had a look at the compiler output if the memory usage goes up, but it was minimal (<1kByte). So the problem should be in other parts of the code? I have a few functions which aren't in a class.