Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Porting of basic C programs to PalmOS

0 views
Skip to first unread message

ebresie

unread,
Jul 2, 2008, 1:57:36 PM7/2/08
to
Hey guys, I'm kind of new to Palm OS development and was hoping some
of you might be able to help me understand a little bit better.

If you wanted to write a simple C program that only did printf("Hello
world!"); How would you
program that, compile it, and link it (how would you include stdio.h,
etc, etc)? And then, how would you run it (to actually see the text,
"Hello world!" display on your screen of your device)?

From what I have read so far, from the StdIOPalm.h and
StdIOPalmProvider.h, this leads me to think implementing some
PalmProvider app is the route to go, but it seems a lot more
complicated than I originally though.

One step further, if you want to attempt to port some basic C code to
a Palm platform, what is necessary for doing so? Are there any good
porting tools that translate normal C header files to Palm-ified
Header files?

I was looking around and find some items such as StdIOPalm.h which I
assume is equivalent to stdio.h. I have also found a unix_stdio.h
file. Which would be best to use?

What is missing from Palm header files and what is implemented?

This may be a very open ended question, but I hope it may prove
helpful to other as well.

Eric

fcassia

unread,
Jul 2, 2008, 2:20:58 PM7/2/08
to
On Jul 2, 2:57 pm, ebresie <ebre...@gmail.com> wrote:
> Hey guys, I'm kind of new to Palm OS development and was hoping some
> of you might be able to help me understand a little bit better.
>
> If you wanted to write a simple C program that only did printf("Hello
> world!"); How would you
> program that, compile it, and link it (how would you include stdio.h,
> etc, etc)? And then, how would you run it (to actually see the text,
> "Hello world!" display on your screen of your device)?
>
> From what I have read so far, from the StdIOPalm.h and
> StdIOPalmProvider.h, this leads me to think implementing some
> PalmProvider app is the route to go, but it seems a lot more
> complicated than I originally though.

PalmOS C/C++ Portability Guide
http://dogbert.mse.cs.cmu.edu/charlatans/References/Tech_Doc/Palm_FAQ/articles/stdlib.html

FC

wlcna

unread,
Oct 23, 2008, 12:43:56 PM10/23/08
to
"ebresie" <ebr...@gmail.com> wrote...

> If you wanted to write a simple C program that only did printf("Hello
> world!"); How would you
> program that, compile it, and link it (how would you include stdio.h,
> etc, etc)? And then, how would you run it (to actually see the text,
> "Hello world!" display on your screen of your device)?
>

It sounds like you want to write a "console" program for Palm.

Never heard of that.

Did that StdIOPalm.h stuff seem to help with doing something like that? I
would think that "stdio" on the palm would just mean trying to get the same
basic variety of file access functions working, *not* displaying stuff to
the screen and getting input. Am I wrong?

david

unread,
Dec 20, 2008, 1:37:44 PM12/20/08
to
On Thu, 23 Oct 2008 16:43:56 +0000, wlcna rearranged some electrons to
say:

http://www.orbworks.com/pcpalm/

spamme9

unread,
Dec 20, 2008, 3:32:39 PM12/20/08
to
Can't help you with C...writing commercial programs for a Palm
might be beating a dead horse anyway...

If you want to write simple GUI programs for your own use,
the demo version of "hotpaw basic" is pretty amazing with
shallow learning curve, no .h, libraries, pragmas etc....all
that stuff that makes C so hard to use. Don't remember if
the pay version will let you compile.

mike

0 new messages