如果要porting 到WINCE 用Visual Studio 來 build
會遇到很難克服的麻煩 ( makefile.....)
build system 完全不同。
有以下兩種想法
1. 手工修改 製作 makefile 給nmake用 然後用 VS2008 build
2. use cross-platform build system 如 cmake 用 vs2008
3. 使用 gcc cross compiler for MIPS WINCE
第三點的話 cross compiler 有很多現成的
如 codesourcery
有提供 GNU/Linux 及 ELF 的版本
但是無法支援WINCE
因為 WINCE 是 (PE/COFF)
> Can I use gcc to compile Windows CE application? Our customer is very > interested in gcc but he has to use Windows CE at the same time. We hope to > find out a good solution for them. Thanks. Our Sourcery G++ releases do not target Windows CE. Our releases use the ELF file format, while Windows CE uses a different object file format (called PE/COFF). There is some support for ARM Windows CE in the GCC source code, but I'm not sure how well that works.
在gcc 的document 裏 有看到 support WINCE 的部份
Windows CE
Windows CE is supported as a target only on ARM (arm-wince-pe), Hitachi SuperH (sh-wince-pe), and MIPS (mips-wince-pe). note: binutils 2.14 之後取消了 mips-*-pe 的支援 所以能用的最新 binutils 為 2.13.2.1