RES: RTEMS with C++
leonp at plris.com
leonp at plris.com
Thu Oct 12 12:00:32 UTC 2006
On Wednesday, 11 בOctober 2006 19:14, you wrote:
> Leon, thank you for your answer!
> I answered your e-mail and the others to the list, but I'd like to ask you
about the examples you cited:
> >> If you need some examples of C++ in RT (?) application (and ours is
> >> definitely RT) I can expand, but I think that the list is not interested
> >> in this - so, mail me offline.
> I'd be grateful if you could send me some example. The ones that are
> available at RTEMS FTP are too simple. Best regards,
Well, as the whole application is in C++ it is rather difficult to extract
Our application is the data recording system based on MPC8XX CPUs.
For this application I has the following class inheritance trees:
- channel, input channel/output channel, DMA, PCM (telemetry) channel/Ethernet
Channel/etc.. From this i create objects of specific input channels of the
- channel, input channel-output channel, UART. From this i create objects of
different UART input channels.
On this tree base all the other type of channels are based (total up to 26
Our application has the standardized structure of messages that are built by
input channels and passed to recording media via message queues. This is the
set of template/based classes of about 6 types.
We have implemented the FAT16/FAT32 file system. The difference between both
is encoded in template set of functions.
I can continue this way for a lot of time. Generally speaking, the general
advantages of OO programming are in RT the same as elsewhere.
The only one thing I should like to add is, that all the application was
written first in pure C. Then, several years ago we rewrote it in C++ and
compared the performance. If the C application was using 25% of CPU, the
exactly the same C++ application in exactly the same conditions used 27%.
Feel free to ask questions you want.
PLR Information Systems Ltd.
More information about the users