Palm OS/PrcTools 编程
外观
PRC-Tools 可以用于在 UN*X 兼容系统(如 Linux、BSD 和 Cygwin)上 交叉编译 Palm OS 软件。
获取 Palm OS SDK 并将其放置在/tmp,然后
cd /usr/local/share sudo tar xzf /tmp/palmos-sdk-5.0r3-1.tar.gz sudo mv sdk-5r3 palmdev
如果你发现prc-tools没有为 Lenny 打包
cd /tmp wget http://ftp.gnome.org/mirror/cdimage/snapshot/Debian/pool/main/p/prc-tools/prc-tools-arm_2.2.90.cvs20030306-6_i386.deb wget http://ftp.gnome.org/mirror/cdimage/snapshot/Debian/pool/main/p/prc-tools/prc-tools-doc_2.2.90.cvs20030306-6_all.deb wget http://ftp.gnome.org/mirror/cdimage/snapshot/Debian/pool/main/p/prc-tools/prc-tools-m68k_2.2.90.cvs20030306-6_i386.deb wget http://ftp.gnome.org/mirror/cdimage/snapshot/Debian/pool/main/p/prc-tools/prc-tools-utils_2.2.90.cvs20030306-6_i386.deb wget http://ftp.gnome.org/mirror/cdimage/snapshot/Debian/pool/main/p/prc-tools/prc-tools_2.2.90.cvs20030306-6_all.deb sudo apt-get install libstdc++5 sudo dpkg -i *.deb
创建一个名为HelloWorld.c,然后
m68k-palmos-gcc HelloWorld.c -o hello m68k-palmos-obj-res hello build-prc Hello.prc "Hello" HELO *.hello.grc
的文件,虽然一个 Makefile 可以减少输入。
- 使用-g和-O0选项构建
- m68k-palmos-gdb App(其中App是输入到build-prc)
- 中的目标代码
- target pilot localhost:6414