Thanks for your reply.
In oder to reduce ctor/dtor size in object file, maybe I should move
most ctor/dtor source to a seperate function.
best regards,
dragchan
drag chan wrote:
> my question is why every constructor/destructor of class A have a
> couple of same code blocks in the object file?
The ABI requires two separate versions of the ctor and dtor, one for
when the object being initialized is a base class and one where it's
not. Because you used -C
hi list,
I'm using g++ to compile my project under linux. When checking c++
object files, I have a question about it.
there is a example:
--
class A {
public:
A();
A(int _i);
~A();
void hello();
private:
int i;
};
A::A()
{
i = 0;
}
A::A(int _i)
{