DeeKnows Homepage

Main menu:

DeeKnow’s Grotto

Palm Development

I couldnt spring for the CodeWarrior tool pricetag so thought I'd have a crack at getting GCC running on my Win2K machine running under the Unix emulation platform Cygwin.

PalmPilot image
Installing Cygwin
-----------------

Can run the setup executable directly from their website, or download and
run locally. Either way the setup.exe then prompts for a location for source
files then proceeds to build a local instance of itself.

You need to ensure to add the prc-tools server to the download list and select
it from the list (so you have two servers chosen, the primary download site
PLUS the prc-tools one). This way you will also get the PRC modules listed
in the available package list. They do no appear when using one of the
default download pages only.

I also had to manually select GCC as a package, it seems that it isnt
selected by default.

Next step is to suck down a SDK, extract it into a local folder and setup
your path to point to the location.

You use the palmdev-prep tool to configure the location of the #include files
as the API will be always be used, and it saves having to specifiy include locations
at compile time for the preprocessor and linker. see...
	http://prc-tools.sourceforge.net/doc/prc-tools_6.html#SEC44

The palmdev-prep tool searches in the path /PalmDev so you need to mount the
location of the extracted SDK files as such, e.g....
	mount -tf "D:\MyFolder\PalmDev" /PalmDev

then run palmdev-prep...

	$ palmdev-prep -v
	Checking SDKs in /PalmDev
    (none)
    and material in /PalmDev used regardless of SDK choice
	(common)    headers in 'Incs', no libraries

	Writing SDK details to target specs files...
	Wrote m68k-palmos specs to '/usr/lib/gcc-lib/m68k-palmos/specs'
	...done

The palm GCC compiler should now be able to find libraries and include files
from the SDK. The compiler binary is...

	m68k-palmos-gcc

Need to download and install PRC-tools source from...
	http://sourceforge.net/project/showfiles.php?group_id=4429

Should then be able to compile it under CYGWIN
	http://prc-tools.sourceforge.net/install/BUILDING.html

Palm OS Emulator HOWTO
----------------------
	http://www.netmeister.org/palm/POSE/POSE-HOWTO.html
includes hello world example

Pilot Development Resources
http://www.massena.com/darrin/pilot/resources.htm