Sorry to disappoint but I'd think it wouldn't be possible. Compiling a rockbox build on a modern computer takes a good few minutes, up to maybe ten of them. The processor on a digital audio player is much, much less powerful. It would take day.
And then, anyway, the rockbox firmware is not the sort of operating system that could support a C language building environment (it's more of a windows/osX/Linux thing...).