bartop

palmoswerks ARCHIVE
Palm OS programming tips from a (former) CodeWarrior insider

header

Navigation

Search
Home
About
Stories
Stuff I Like
Articles
PilRC
CodeWarrior
palmos.techwood.org
DevTools List
Palm OS Dev FAQ

Using ARMlets with Mac OS 68K Linker in V9

Author:   Ben Combee  
Posted: 1/20/03; 4:39:29 PM
Topic: Using ARMlets with Mac OS 68K Linker in V9
Msg #: 125 (top msg in thread)
Prev/Next: 124/126
Reads: 1770

There's been some confusion with new V9 users about the need to switch linkers to use ARMlets. While it is true that the new Palm OS 68K linker supports directly linking .bin files into your output PRC file, this doesn't mean that you can't use the ARMlet tools with projects using the Mac OS 68K linker.

The key is that you need a way of importing the .bin files from the ARMlet tools into your project. This can easily be done using a Rez script. I talk about importing binary files in a previous palmoswerks column, but I'll provide a specific example here.

If you had an ARMlet being output to the file ARMC0001.bin, you're saying that you want it to be included as a 'ARMC' resource with ID 1. To say this in Rez, you would write

read 'ARMC' (1) "ARMC0001.bin";

The actual calling of the ARMlet is the same, no matter what compiler you use. You still have to find the ARMlet resource, lock it in memory, and call it.


Send feedback to combee@techwood.org
Copyright © 2004 Benjamin L. Combee
Palm OS is a registered trademark of PalmSource, Inc.
Metrowerks and CodeWarrior are registered trademarks of Metrowerks Inc.

The views expressed on this website/weblog are those of mine alone and do not necessarily reflect the views of PalmSource or Metrowerks.

This is a Manila Site

qwertYAK / frobnovich