Quantcast
Channel: Tools
Viewing all articles
Browse latest Browse all 91752

Forum Post: RE: TI ARM v5.1.4 + global c++ variables with destructor needs heap

$
0
0

[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]


Viewing all articles
Browse latest Browse all 91752

Trending Articles