I would like to develop an application for a Nios II core that will allow me to dynamically load and link to a variety of plugin modules. The host application will have no knowledge of what plugins it will have access to until run-time. The plugins will however share a simple common interface allowing the plugin to be called through its interface, passing it a pointer, and perhaps returning a pointer. The ability to implement some kind of call-back would be a bonus!
I have done this kind of thing in C#, where it is quite a bit easier!! But I am a bit out of my depth here.
At the core of it I want to load a compiled class into memory, and create a pointer to it, kowing that it has the same interface as a virtual class in my application. My application will provide an XML postal service to all the plugins loaded.
I don't know quite where to start, and am missing some key points of c++ and how it is compiled:
What does a pointer to a class actually point to?
How do I compile a simgle class in the NIOS IDE that I can dynamically load?
Do I need a third party RTOS?
Can what I am trying to do, be done?