Re: [arm-gnu] Tons of seemly extraneous code linked in c++ program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [arm-gnu] Tons of seemly extraneous code linked in c++ program
- To: arm-gnu <arm-gnu@xxxxxxxxxxxxxxxx>
- Subject: Re: [arm-gnu] Tons of seemly extraneous code linked in c++ program
- From: James <jamessteward@xxxxxxxxxxxxxxx>
- Date: Mon, 30 May 2011 08:33:00 +1000
On Sun, 2011-05-29 at 09:31 +0200, Freddie Chopin wrote:
> On 2011-05-29 07:06, Gene Smith wrote:
> > Basically, I guess I don't understand the relation between inline ctor
> > or dtor functions and whether an object can be created with new and
> > removed with delete.
>
> A bit off-topin...
>
> Library "new" uses exceptions, so that pulls like 60kB of
> exception-handling code. Also the switch -fno-exceptions makes little
> difference, because the code from stdlibc++ is already compiled and it
> DOES use exceptions - any "standard" code and you have
> exception-handling enabled anyway. Recompiling the library helps (;
Rewrite the code in C?
I really wonder about the logic behind the use of C++ in small embedded
devices.
--
JS