Hi All,
 I have a few questions for you Palm OS programming gurus. I'm still a newbie in
this area, and still missing the whole picture. I'm porting some program to run
completely on ARM, and I wolud like somebody to help me with the following 
issues:

1. Would it be correct to say that PilotMain has to reside in the code to be 
compiled
   for m68k, and not arm? Meaning that because of backward compatibility OS 
assumes
   every application is running m68k code, and then eventually calls arm 
routines?
   I'm talking about 'normal' apps, not 'hacks' or something.

2. Is it possible to have arm code inside m68k without "Standalone.h", i.e. 
using
   STANDALONE_CODE_RESOURCE_ID directive? I tried to avoid it, and everything
   worked fine (copilation and linking) until build-prc. Then I got an error:

> build-prc -n Armlets -c ARML main arms
arms: warning: resource 'code' #0 already obtained from 'main'
arms: warning: resource 'code' #1 already obtained from 'main'
arms: warning: resource 'data' #0 already obtained from 'main'
arms: warning: resource 'pref' #0 already obtained from 'main'

   I tried looking into build-prc manual, but am still unable to figure out 
how. Do
   I miss some switches to build it? When using Standalone, it works fine, but 
then
   I have the following problem.

3. How do I use global variables? I used "Standalone.h" directives in order to 
avoid
   build-prc problems, and would like to have global variables only on ARM 
scope. Although
   I think I read somewhere that that's not possible, I gave it a try, and had 
another
   build-prc error (actually warning):

warning: global data ignored

Any help would be great.

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please 
see http://www.palmos.com/dev/support/forums/

Reply via email to