Quote Originally Posted by Legolas
Uhm... I don't think so. FPC crosscompiler currently does not compile code for gba. There is a version that can crosscompile from i386-linux to arm-linux, not to arm-elf.
If I understood FPK ok, there is one main problem compiler side:

- FPC supports ARM, but only normal 32-bit ARM assembler. ARM also has a shortened 16-bit THUMB chipset. (not every ARM chip has this, it is an added option). FPC doesn't support THUMB instruction generation yet.

Besides that, the typical other tasks that must be done for a new port:
- somehow create startup code (the already mentioned crt0.[o|as])
- Create something that can interface with the OS.
- Interface to other compiler's libraries (typical GCC) to get access to code.
- Do stuff that is special for that port. (e.g. for Windows: DLL support)