RES: RTEMS with C++

Fabrício de Novaes Kucinskis fabricio at
Mon Oct 16 19:05:23 UTC 2006


Thanks for your answer! Your info - specially the one about the performance comparison - will help me a lot.
Best regards,


-----Mensagem original-----
De: leonp at [mailto:leonp at]
Enviada em: quinta-feira, 12 de outubro de 2006 09:01
Para: Fabrício de Novaes Kucinskis; rtems-users at
Assunto: Re: RES: RTEMS with C++

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 
something... OK.

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 
DMA type.
- 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.
Dr.Leon M.Pollak
PLR Information Systems Ltd.

More information about the users mailing list