error in use of operator "new" with rtems

Sebastian Huber sebastian.huber at embedded-brains.de
Mon Mar 4 12:11:09 UTC 2013


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)).

-- 
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