On Monday 18 March 2002 23:57, you wrote: > Hi -- yes, you can do C++ in kernel. Infact, I have put all of > STL, libC, and libm, libtiff and libz.a all into the kernel. Granted, it > is the mother of all modules -- about 16 MB in our case.
I had similar results. However, do you really mean that you can use exceptions in your realtime threads ? Any memory allocation in a thread should cause a crash. For example, when your STL vector resizes when adding a new element... As long as i stay in the init_module and cleanup_module, i can use new and delete etc, but inside a thread this is impossible. The inverse is true for floating point calculations : i can do them in the thread but not in init/cleanup module. Another example, the log10() function in libm crashes the system, and so do many other calls. Do you base the usability entirely on trial and error ? I still have to see the userspace program /library being put in the kernel without drastic changes ! A last remark, why do you demand that everything is put into a single kernel module ? We insmod everything seperately. Peter -- [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/
