Execute code on a specific memory location

Are you asking if you can separately compile FreeRTOS application and load it over FreeRTOS like a Linux application? There is no 1:1 mapping with Linux as there is no loader. An approach you can try is - build FreeRTOS and application as 2 separate binaries and tell the application the location of FreeRTOS APIs. Take a look at the approach I mentioned here - Binary partitioning - #3 by aggarg