Use Perl to port Windows DLLs to Palm OS
developerWorks writes "Porting existing Windows DLLs to Palm OS has historically been a tedious process. This article introduces you to an interesting technique that makes this process easier by using Perl. It demonstrates a Perl script that analyzes existing C source code and automatically generates many of the source files required for porting. You should be able to use the code outlined in the article to help with your own porting projects."
I don't think writing Perl scripts to munge your C sources is a very safe or easy to maintain design. Everyone knows that different systems have different APIs and "quirks". I think the Linux kernel takes an interesting approach to portable code. C macros (#defines and #ifdefs) are only allowed in header files, so the C source files for the core code are exactly the same for all platforms. All the platform-specific quirks and macro workarounds are isolated to header files specific to just that platform's arch directories.
cpeterso
looks kinda like their porting Math libraries
however, you would think that PalmOS aleady had math libraries
Somebody slap me if I'm wrong, though.
I just slapped you, and I still don't understand why
There are times when you have an application running on Windows (and not necessarily PocketPC) that you need to port to run on Palm OS. Anyone who has done this even for a smaller code base knows the pain of doing this. An application on Windows may have a main executable and a bunch of DLLs. The article shows how to convert the DLLs to Palm Shared libraries and can be very useful for small and large projects equally. Lot of companies are allowing their employees to use the handhelds of their choice. In such situations you need to port your applications to PocketPC, Palm, Blackberry, add your favourite PDA here.
- Jalil Vaidya