PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

Codewarrior vs GCC for Palm OS

I was looking into getting Codewarrior for the Palm OS and wow! It is expensive!

Then there is GCC.. free.

I was wondering if they were binary compatible in regard to Palm development? i.e. if I write a library (random example: a PocketHAL port) using GCC... Will the library work for people that uses CW?

If this is not the case, is CW the only place you can buy the compiler? Is there any other online stores that carries it? Is there a way to get a discount somehow?

Thanks for any pointers.
There is also PODS from Palm, it may be free.
Thierry,

http://search.ebay.com/codewarrior_W0QQ ... 1QQfromZR8

A couple of Buy It Now listings for just over $100

-John
Unfortunately only one of the is for Palm, and it's an old version (6.0).

I will see what I can do with the free GCC... I simply would like to have a Metrowerk version of PocketHAL and I think that $400 US is a little expensive to do just that.
I've been using Codewarrior for my Palm development for almost 4 years now, and in my opinion Code Warrior is far superior to GCC. Yes, GCC is FREE, but you get what you pay for (or don't pay for in this case). :wink:

I would think for your purposes an old version of Codewarrior would suffice, but I'm not really sure what you need for PocketHAL.

I do know of ARM-based binary libraries that are available that work with both Codewarrior and GCC, so I believe it is possible to accomplish what you are trying to do. "MODULA" is an audio engine for the Palm OS that works with both compilers and is provided as a single ARM BIN file. (http://modula.indus3.org/)

I hope this was helpful...
Thanks BapDude, I will contact them to know what exactly is required. I don't need anything special, just a compiler that can produce a lib usable by others.

Update: they don't have an email address or a demo lib I can download (their demo doesn't contain the lib).
Let me rephrase this:

I am looking into the possibility of porting adding Palm support to PocketHAL. I want the thing to run on Palm OS 5+ (Garnet). I want to make sure that I can support people working with either GCC or Metrowerks.

If the libs are binary compatible, then it means I don't need to spend $400 US on MW's compiler.
Sorry about that. Their main website is: http://www.indus3.org/

You can email them at: entertainment@indus3.org

I've emailed them once before, and they were very helpful. I'm sure they wouldn't mind answering a few questions for you.

No, they don't provide the library until you purchase a license. The only available download is a DEMO that uses the library. It's quite impressive in my opinion. :D
Did some reading and from what I can understand, Palm v5 (Garnet) doesn't even support full-ARM applications. All you can do is small code snipets in ARM (Armlets?). If you want the real thing you need to go with Cobalt (Palm v6). Is that right?

Any devices out there with Palm v6?

This kinda sux... I don't want to deal with multi-segment programming. It is so early 90's.
Yes, you are correct. Palm 5 supports "Armlets" which basically allow the developer to write custom routines to take full advantage of the ARM speed and architecture.

To provide backward compatibility with older versions of PalmOS, there is a software layer that translates existing code into ARM opcodes. Remember that Palm devices used to have the Motorola Dragonball processor, and with Palm OS5, moved to ARM-based. This required a translation layer to allow existing code to run on the new devices.

Palm recently released the Palm Cobalt (OS6) Simulator to registered developers. However, I do not know of any Palm devices on the market that use OS6.

I agree...multi-segment code is pain! That's one reason why I think it's much easier for a Palm developer to transition to Pocket PC development than the other way around. If you can survive all the nuances of Palm programming, you can survive anything! :wink:
BapDude wrote:I agree...multi-segment code is pain! That's one reason why I think it's much easier for a Palm developer to transition to Pocket PC development than the other way around. If you can survive all the nuances of Palm programming, you can survive anything! :wink:


We are in this situation too and I absolutely agree! :)
You have to understand, Pocket PC is more like a limited PC, while Palm is more like a glorified embedded device.