Speed-up by executing function in SRAM instead of SDRAM

Hi,
is it possible - to speed up execution - to execute functions in SRAM, while the main application is running in SDRAM?

I already had a look into the docs, but there is only a way to place a function in SRAM at program begin by telling the linker the functions location.
But is there also a way, to copy the function to SRAM right before execution?
This would allow many functions to be executed in SRAM, even if they are - in sum - bigger than the SRAM.

Parents
  • I already had a look into the docs, but there is only a way to place a function in SRAM at program begin by telling the linker the functions location.

    The chapter about scatter-loading is the last one in the linker documentation. That's the one you want to look at, especially the parts about setting load and execution addresses of functions.

Reply
  • I already had a look into the docs, but there is only a way to place a function in SRAM at program begin by telling the linker the functions location.

    The chapter about scatter-loading is the last one in the linker documentation. That's the one you want to look at, especially the parts about setting load and execution addresses of functions.

Children
More questions in this forum