Considering any RTOS source code there are couple of files that are specific to 1-Target 2-Compiler. There can be a minimal dependency of the word-size of target controller, interrupt calling the kernel tick function etc. Are there any other dependencies...? Thanks in advance
While working with Micrium and FreeRTOS, I found that since context switching is performed many times between tasks and ISR, it is a general practice to write the best optimized code for storing CPU registers onto task's stack while switching context. To get the best optimization, the CPU register handling is generally written in assembly language. And this is one reason for compiler (toolchain) dependency of RTOS.