error in use of operator "new" with rtems
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon Mar 4 12:21:01 UTC 2013
You can look at the linker map file to see which modules are pulled in due to
the new operator (GCC option -Wl,-Map,map.txt).
On 03/04/2013 01:15 PM, Luca Cinquepalmi wrote:
> I've also tried with sparc-rtems4.11-g++ but it's the same...
>
> On 03/04/2013 01:11 PM, Sebastian Huber wrote:
>> On 03/04/2013 11:52 AM, Luca Cinquepalmi wrote:
>>> The dimension of the object code is the double of the object code in case
>>> I don't use the "new" operator. No error occurs in compilation, only a
>>> dimension
>>> enlargement which doesn't make my program work...
>>
>> Do you mean the code size of the final executable? If you use the standard
>> new operator, then you depend on C++ exception handling and also some pretty
>> printing stuff (see GCC configure option --disable-libstdcxx-verbose). You
>> can avoid some dependencies if you use the no-throw new (e.g.
>> new(std::nothrow)).
>>
>
>
> Luca Cinquepalmi
> Space System SBU
>
> Planetek Italia s.r.l.
> Via Massaua 12, I-70132 Bari
> Tel.: +39 0809644200 Fax: +39 0809644299
> cinquepalmi at planetek.it - http://www.planetek.it
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the users
mailing list