[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: [rtl] Re: Object Oriented programming and RTLinux



>>>>> "Hideto" == Hideto Ishibashi <hideto-i@ijk.com> writes:

 Hideto> Actually I'm working on RT versions of the C allocation
 Hideto> functions malloc()/free() and C++ operator
 Hideto> new/new[]/delete/delete[] (although it'll be possibly a bit
 Hideto> different from the ISO/ANCI C/C++ standard). It looks working
 Hideto> well at non-RT debugging with gdb.  So I think it's almost to
 Hideto> work on RT-Linux.

I think all you need is to replace malloc/free; the C++ operators
typically call those.  If not, then the additional change you need is
to replace ::new() and ::delete() operators (which can just become one 
line functions that call malloc and free respectively).  new[] and
delete[] should not take any additional work, the compiler takes care
of those.

	paul
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail majordomo@rtlinux.cs.nmt.edu OR
echo "unsubscribe rtl <Your_email>" | mail majordomo@rtlinux.cs.nmt.edu
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/