Why not try to make a gnu pascal cross compiler? Maybe it could be easier than fpc :?: