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."
Somebody slap me if I'm wrong, though.
TANSTAAFI: There Ain't No Such Thing As A Free iPod.
Why?
If you've chosen PocketPC over Palm why would you switch? Kind of like going from Windows to DOS.
Plus the UI components will not work at all. So simply copy/pasting your code to CodeWarrior from the Embedded Tools would work (assuming you tried to keep it close to compatible, again why?).
The hardest thing for me as a developer is the logic, not the code. Hell with good design documents and a well thought out plan the code is almost secondary.
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
Now we just need to be able to use Windows DLLs to port perl to PalmOS!
(... or whatever it would take to port perl to PalmOS)
- Peter Brodersen; professional nerd
In fact, I'm sure the Palm already has math libraries of some sort --- I've currently got MathLib on mine, though I don't know what IBM is trying to do. Perhaps something MathLib doesn't?
TANSTAAFI: There Ain't No Such Thing As A Free iPod.