On Tue, 19 Feb 2002, Ken Emmons, Jr. wrote:

> Hi Adam,
>
> I am using both C and C++ in my project. I think that hte reason why more people 
>don't use C++ is that it is a pain in the butt to get working. Also, C++ is a lot 
>more liberal about things like using malloc and free when doing object declaration in 
>functions, etc. And malloc and RT don't really mix too well. With RTlinux you 
>basically have to either do kmalloc in the init_module() or write your own memory 
>heap allocator. Basically you use static objects for RT. Also, C++ is pretty strict, 
>so when writing things like IO drivers, you have to cast the heck out of your data in 
>order to read and write memory and the like. I am only using C++ because of the pass 
>by reference operator, which I use in my API to pass a reference to and IO variable 
>that the function will operate on. I may use objects in future api's but they are all 
>functions now. I think the Real time programing paradigm makes it more difficult to 
>use higher level tools such as OOP jsut because you need to be more !
aw!
> are of what is going on at a hardware level.

Hey regarding your using C++ solely for the reference type.. why not just
stick to C and use pointers instead?

-Calin


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

Reply via email to