Nnamdi Kohn <firstname.lastname@example.org> wrote:
What behaviour are you expecting this to exhibit?
– what stack would it use?
– if this “remotely” called function modified a global variable,
what would happen?
Could you just link the function into both process and call it locally?
our system architecture is to show dynamic behavior for the users. We would
like to combine the “test”-portions of the code of any user application into
one central process. Doing this, we might be able to avoid some context
switches, by dynamically changing our system architecture based on the
pre-calculations with the “test”-portions of every user’s code).
We can not link single functions (statically) to this process, because at
execution time we don’t even know which processes might be part of our
Is there a possibility to reserve shared memory from QNX and put executable
code into that region?
The usual choice for what you want to do – dynamic reconfiguration –
is through shared objects/dynamically linked libraries.
The dlopen() and dlsym() library routines are used to load the shared
library, and resolve symbols in it.
QNX Training Services