Click here to get back home

Porting of basic C programs to PalmOS

 HomeNewsGroups | Search | About
 comp.sys.palmtops    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Porting of basic C programs to PalmOS ebresie 07-02-2008
Posted by ebresie on July 2, 2008, 1:57 pm
Please log in for more thread options
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

Posted by fcassia on July 2, 2008, 2:20 pm
Please log in for more thread options
> 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

Similar ThreadsPosted
programs for OS5 on linux-based PalmOS August 5, 2005, 11:13 am
Medical PALM pilot programs (AKA PDA programs) in full working versions. March 23, 2006, 3:49 pm
using GW basic with serial com on pda January 24, 2005, 12:46 am
Ridiculously Basic Palm TX Question November 21, 2005, 9:38 am
NS Basic/Palm Adds Treo Support! July 6, 2004, 10:20 am
How to move programs between categories December 19, 2004, 8:08 pm
Hard to find programs... February 20, 2005, 2:42 pm
[noob] Zire 72 programs for windows? August 3, 2005, 2:27 am
PalmPilot Programs for Jotting Down Musical Ideas? October 31, 2005, 1:57 pm
vb+palmOS November 28, 2004, 12:17 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap