[quote user="George Mock"] have been unable to write a class with a destructor which causes atexit() to be called. [/quote]I found compiling the following as main.cpp with the TI ARM v5.1.3 compiler caused atexit to be linked into the image:
class simple { public: int count; simple() { count = 1; }; ~simple() { count = 0; }; }; simple test_dtor; int main (void) { return 0; }
[I didn't trace what was causing atexit to be linked into the image]