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

SDK • Re: How to set assembler routine to run in RAM

$
0
0
What is the mechanism to set an assembler function to run in RAM?
it is about linking, the code should go to section that goes to ram, in gcc C it is like '__attribute__((section(".mysection")))' where .mysection in linker script is set to go to RAM.

so either find how to mark code with section attribute or change symbol name to something specific like __ram_xxxxxx and then in linker section for ram match all __ram_* symbols to go to it

EDIT: for Pico it is here https://github.com/raspberrypi/pico-sdk ... ions.h#L41

EDIT2: for assembly see this https://github.com/raspberrypi/pico-sdk ... iscv.S#L14

Statistics: Posted by fanoush — Fri Sep 13, 2024 7:30 am



Viewing all articles
Browse latest Browse all 5801

Trending Articles