Reducing the size of C++ executables - eliminating malloc
Michael Eager
eager@eagercon.com
Sun Nov 12 23:17:00 GMT 2006
Mark Mitchell wrote:
> Michael Eager wrote:
>> Why should the personality routine be included in all C++ programs?
>
> Because all non-trivial, exceptions-enabled programs, may need to do
> stack unwinding.
It would seem that the place to require the personality
routine would be in the routine which causes the stack
unwinding, not in every C++ object file, whether needed
or not.
For embedded targets, there are many C++ programs which
are non-trivial and which do not require exception handling.
My thoughts:
1) Exception support should be included only when used.
2) The default for -exceptions should be target dependent.
--
Michael Eager eager@eagercon.com
1960 Park Blvd., Palo Alto, CA 94306 650-325-8077
More information about the Gcc
mailing list