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

SDK • Re: Support for "on-demand" running functions from RAM?

$
0
0
Studying the C SDK run-in-SRAM is a start. I'd expect some function decorations may be needed if the output is not already PIC (position independent code) and decorations also ensure that they are not optimized away. Getting the size of a C function normally appears to be non-trivial, but I can look at what the C SDK does. One can also compile function(s) elsewhere (offline) then load it as binary data in an array. Then write the data from flash to SRAM and call it. Or keep a small C compiler in the flash.

Statistics: Posted by katak255 — Sat Sep 06, 2025 12:37 am



Viewing all articles
Browse latest Browse all 8609

Trending Articles