Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5334

General discussion • Dynamically load functions into RAM

$
0
0
Hello!

I would like to have a fixed section of RAM where I can load functions to from flash (one at a time) and execute.

I think it would be possible if I could somehow let the linker know that these particular functions will be executed from that specific adress in RAM. I guess the linker will also need to know that these functions will occupy some space in flash where they are loaded from.
These loaded functions will only be executed at that address in RAM and will only be executed by one core (but inside an interupt).

Is this approach on the right lines and if so how can I tell the linker about the location of a function's execution and can multiple functions share that location?
If not is there another way to do this that is simpler?

Statistics: Posted by nme3 — Thu Aug 15, 2024 8:54 pm



Viewing all articles
Browse latest Browse all 5334

Trending Articles