Re: about g++ compilation for class constructor/destructor

2008-09-28 Thread drag chan
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

about g++ compilation for class constructor/destructor

2008-09-27 Thread drag chan
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) {