Re: egcs produces bloated code by default
On Mon, 26 Oct 1998, Hamish Moffatt wrote:
> On Sun, Oct 25, 1998 at 09:41:55PM -0700, Jason Gunthorpe wrote:
> > No, exception handling is a C++ only feature it will have no effect on C
> > programs whatsoever [huge egcs bug otherwise]. We have already taken the
> > size penatly for exception handling when we switched to eg++.
> If your program uses exceptions, it's hardly a penalty!
> Real STL support is nice too; 2.7 was a pig; eg++ 2.8 rocks.
With GNU compilers it inflicts about a 50% size penalty, higher if you use
STL and exceptions. There is no way exception handling will save you 50%
in binary costs compared to traditional error handling.