Domingo, 2 of Julio of 2006
To program for PalmOS with free tools
For that already they have some knowledge of programming, and they want to take his first steps in the development for PalmOS, in blog AlucardX will be able to find an excellent introduction to this world. Two possibilities appear to us. First it is to use CodeWarrior combined with kit of development (SDK) of PalmOS, with the disadvantage of which only there is version for Windows. The other is to use the excellent existing free software tools for such effect, that they have been carried to multiple platforms.
CodeWarrior is surroundings of integrated development (IDE), not only valid for absorbed systems, between which includes PalmOS, but also for Macintosh, Windows and Linux, and until Sony 2 PlayStation and Nintendo GameCube.

CodeWarrior is a commercial IDE of development
But Alucard, like lover of free software, and user of Linux that is, explains detail yet to us how we can develop for PalmOS from Linux, also using the SDK of PalmOS combined with the tools of the projects prc-tools and pilrc, that includes a cross compiler (that is to say, to compile in the computer programs that will be executed in the Palm) based on GCC, a water purifier (to debugger), a generator of files of resources… that is to say, everything what we will need to create applications for our Palm. 100% free and gratuitous software, that also is available for Windows and MacOS X, and can even be integrated in Eclipse, very popular a free IDE developed by IBM, mainly in the world of development in java.

Developing in MacOS X for PalmOS with prc-tools
Alucard begins explaining the process of installation in an installation of Gentoo Linux (the process will not defer much in another distribution), and its configuration. Once we have all preparation, we can write our code with any text editor, and the compilation process is reduced to execute these three commandos.
m68k-handspan-GCC - O2 hola.c - or hello
m68k-handspan-obj-head of cattle hello
build-prc - or hola.prc - n “Proving” - c “alucardX” *.hola.grc
In order to automate this process, one resorts to a Make file, that is not than script more where all the necessary orders are included, so that everything is executed of a single time. Alucard also explains like creating it. The result is a file PRC that or we can install in our Palm and try, or to use a simulator, although according to it tells us does not exist still simulator native for Linux.
This one would be the code of our first program: famous “Hello the world”.
#include <palmos.h>UInt32 PilotMain (UInt16 cmd, void *cmdPBP, UInt16 launchFlags)
{
EventType event;if (cmd == sysAppLaunchCmdNormalLaunch) {
// To show a chain
WinDrawChars (“Hello PalmOS”, 13, 55, 60);// Loop Main event
do {// To finish until it is necessary
EvtGetEvent (&event, to evtWaitForever);SysHandleEvent (&event);
} while (event.eType! = appStopEvent);
}
return;
}
With the explanations of its minitutorial, already we can take ours first steps in the world of the programming for PalmOS. It recommends to us to have the documentation always by hand and if we want some specific book, like for example the one that has used. Also we will find in Internet much interesting information. Luck and to the code!
By: Tricks
RSS commentaries | Trackback |
To print this post
Related articles
Suscríbete to be to the current of the new features in this blog










And serious CodeWarrior the only option in Windows or exists other free options? Very interensatisimo post… mmm mmm
But on the other hand since Palm OS discontinues and comes ALP valdra the pain to learn to program in Palm OS?
MrAnderson, that is the question “of the million” of dollars
At the moment ALP not yet is available and it will not be it until entered good next year; until then, PalmOS it is what there is.
In addition, in theory you will be able to run your software of PalmOS in ALP, so it always is well learning
Saludotes!
Of course, with the amount of programs that there are for PalmOS, which never they perhaps have version for PocketPC or ALP, the programs for PalmOS they are going to have a life rather longer than the operating system.
@MrAnderson: in order to know more surroundings development for Palm, nothing better than to watch its page Web on the subject. In particular, they list more surroundings for C/C .
You are right AlucardX by some part law that your you say… to thanks for the answer Marks I am going to see that, and to see if encounter in some Chilean bookstore something as well as “Programing for PalmOS Dummies” or something thus…
Sensational. then he was right what it was looking for by these days, we are going to see that so complicated it is!
it seems to me very interesting, but it would want to know if there are compilers to program in language java, or if somebody can orient to me on the matter I have one palm TX