Optimizing constructors/destructors for embedded systems

Kövesdi György kgy@deverto.hu
Mon Jun 25 09:25:00 GMT 2007


Hi,

In addition to wasting space, creating unnecessary instances of destructors 
may lead to other problems (especially for embedded systems): some 
destructors call the operator delete(void*). So, the corresponding libraries 
will be linked in the resulting code. Some amount of space could be saved 
avoiding the use of operators new() and delete(). It would be useful to be 
able to disable those destructors somehow.

Regards
Gyorgy Kovesdi



More information about the Gcc-help mailing list