Hallo Dirk,
"Dirk Pohl [EIT]" wrote:
>
> David Olofson and Erwin Rol both stated to add own new/delete commands.
> Why is that necessary? As I remember, the examples/cpp section also used
> new without redefining it.
> I would be glad if someone explained this to me, since I keep asking
> myself if using C++ is a good idea every time the system hangs :-)
When you don't use new or delete you will not need to write your own, i
asume this is the case with the examples.
new internaly uses malloc and delete uses free, these two are not
available in the kernel. This is the main reason. One probably could
write a malloc and free to get around this too, but thats basicly the
same thing under a different name.
Don't forget the disable rtti and exceptions, because they internaly use
rather complex setup for stack unwinding and use pthreads for locking.
the std::new must throw a exception when no mem is available.
- Erwin
>
> Thanks
> Dirk Pohl
> University of Kaiserslautern
>
> -- [rtl] ---
> To unsubscribe:
> echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
> echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
> --
> For more information on Real-Time Linux see:
> http://www.rtlinux.org/rtlinux/
-- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
--
For more information on Real-Time Linux see:
http://www.rtlinux.org/rtlinux/