Have you written in C and compiled separately on each platform?
Yes, it's written in C and then cross-compiled for the target platforms.