On Wednesday 11 April 2001 10:39, Ivan Martinez wrote:
> > All memory management needed for that is based on new and delete.
>
> So compiling the module as C++ code and using kmalloc/rt_malloc to allocate
> the object is all I need to do?. Will that allow me to call its methods and
> do all the C++ stuff as usual?.

Well, almost. You may need to implement exception handling as well, but the 
basics (instantiating, destroying, virtual methods [via hidden "call 
tables"], inheritance etc) should work as soon as the memory management is in 
place. Actually, it even works without real dynamic memory management, 
provided your code doesn't need to instantiate and/or destroy stuff "on the 
fly", from RTL context.


//David

.- M A I A -------------------------------------------------.
|      Multimedia Application Integration Architecture      |
| A Free/Open Source Plugin API for Professional Multimedia |
`----------------------> http://www.linuxaudiodev.com/maia -'
.- David Olofson -------------------------------------------.
| Audio Hacker - Open Source Advocate - Singer - Songwriter |
`--------------------------------------> [EMAIL PROTECTED] -'
-- [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/

Reply via email to