This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]