Constructors/destructors in compiled C code

Discuss the development of software, tools, libraries and anything else that helps make ps2dev happen.

Moderators: cheriff, Herben

Post Reply
misfire
Posts: 110
Joined: Mon Sep 06, 2004 7:53 am
Location: Germany

Constructors/destructors in compiled C code

Post 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++?
pixel
Posts: 791
Joined: Fri Jan 30, 2004 11:43 pm

Post 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.
pixel: A mischievous magical spirit associated with screen displays. The computer industry has frequently borrowed from mythology. Witness the sprites in computer graphics, the demons in artificial intelligence and the trolls in the marketing department.
misfire
Posts: 110
Joined: Mon Sep 06, 2004 7:53 am
Location: Germany

Post by misfire »

Yes, that's what I ment. Thank you.
Post Reply