This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c++/19662] [FEATURE REQUEST] Need an option preventing any atexit object destructions


------- Additional Comments From gdr at integrable-solutions dot net  2005-01-28 07:17 -------
Subject: Re:  New: [FEATURE REQUEST] Need an option preventing any atexit object destructions

"yuri at tsoft dot com" <gcc-bugzilla@gcc.gnu.org> writes:

| For ex. "gcc -no-atexit ..." will avoid any post-run object destructions.
| 
| This feature is very useful: if I have very performance critical application and
| all my objects are simple and do not *really* require destructions I may opt for
| this. Benefit: will be less extra stuff inserted by compiler and program will
| run faster with better optimizations.
| 
| And often people do not destroy objects anyways.

If your objects are simple and do not need destruction, just don't
define destructors.

-- Gaby


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19662


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]