This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Optimizing constructors/destructors for embedded systems
- From: KÃvesdi GyÃrgy <kgy at deverto dot hu>
- To: gcc-help at gcc dot gnu dot org
- Date: Mon, 25 Jun 2007 10:01:33 +0200
- Subject: Optimizing constructors/destructors for embedded systems
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