Page 204 - The Ultimate Palm Robot
P. 204
Color profile: Generic CMYK printer profile
Composite Default screen
Bots /The Ultimate Palm Robot/ Mukhar & Johnson / 222880-6 / Chapter 7
Bots /The Ultimate Palm Robot/ Mukhar & Johnson / 222880-6 / Chapter 7
Chapter 7 Essential Robot Programming Strategies 187
Other Tools
HotPaw Basic and NS Basic are by no means the only tools available to you.
There are several other BASIC systems for your Palm OS. The best place we
know for finding programming tools for your PDAis www.PalmGearHQ.com.
If you go there and search for “basic program,” you will get a listing of addi-
tional tools and interpreters that you can play with.
Programming the PPRK with C
At the beginning of the chapter, we said that most C and C++ systems do not
allow you to edit source code on the Palm. You need to edit, compile, and cre-
ate the PRC file on your PC and then perform a hot sync operation to load the
application to the PDA. In this section, we’ll look at one exception to that.
PocketC
PocketC, available from www.orbworks.com, is a C compiler that allows you
to create and compile C programs directly on your PDA. For the most part,
though, as your C programs get bigger than just a few lines you’ll want to edit
your source code as memos in the Palm Desktop, and hot sync the memo to
the PDA for compiling.
Download PocketC from the Web or from the CD-ROM, and unzip it onto
your hard drive. The compiler is contained in the PocketC.prc file. If you are
going to make use of any floating point math, you’ll also need the mathlib.prc
file. HotSync both of the files to your Palm and you’re ready to go.
Find and tap the icon for PocketC in the Applications Launcher. This will
bring up a program list form that shows all the compiled programs that
PocketC knows about. If you just installed PocketC, this list will be empty. Be-
low the form are three buttons. When programs are listed in the form, you can
select the program and use the Execute button to execute the selected pro-
gram. The Compile button displays a form that allows you to select and compile
P:\010Comp\Bots\880-6\ch07.vp
Monday, May 12, 2003 4:29:27 PM