Page 1 of 1

Constructors/destructors in compiled C code

Posted: Fri Feb 18, 2005 12:09 am
by misfire
I'm wondering why there is this whole constructor/destructor stuff when I disassemble my compiled C code? Isn't this exclusive to C++?

Posted: Fri Feb 18, 2005 2:24 am
by pixel
You mean, the ctors/dtors sections? It's normal. Don't mind about it. One maybe could have a special linkfile that just rip them out if necessary. It only adds an extra 100 bytes or something.

Posted: Fri Feb 18, 2005 9:00 am
by misfire
Yes, that's what I ment. Thank you.