[Scummvm-devel] A few questions...

Lionel Ulmer lionel.ulmer at free.fr
Wed Nov 7 23:43:03 CET 2001


> 	All good thanks. It works now.

The three rules to remember when porting software on the iPAQ (or any Linux
ARM boxes) :

 = ALWAYS check for unaligned memory accesses
 = check for use of char as they are (by default) unsigned on ARM and signed
   on x86
 = check improper use of structure 'loading' as the padding is NOT the same
   between X86 and ARM.
 
With this in mind, you are saved :-)

> 
> 	Now in scummsys.h
> 
> /* need this for the SDL_BYTEORDER define */
> #include <SDL_byteorder.h>
> 
> #if SDL_BYTEORDER == SDL_LIL_ENDIAN
> #define SCUMM_LITTLE_ENDIAN
> #elif SDL_BYTEORDER == SDL_BIG_ENDIAN
> #define SCUMM_BIG_ENDIAN
> #define SCUMM_NEED_ALIGNMENT
> #else
> #error Neither SDL_BIG_ENDIAN nor SDL_LITTLE_ENDIAN is set.
> #endif
> 
> 	It defines SCUMM_NEED_ALIGNMENT only when it's in big endian mode.
> My ipaq/linux-arm is in little endian :/

I plan to work a bit on SDL for the iPAQ in the next few days (mostly to add
support for the keysyms of the Calendar / Record / .... keys). I could also
add (if not already present) a SDL_NEED_ALIGNMENT #define in SDL_byteorder.h.

I will see what I can do :-)

                            Lionel

-- 
		 Lionel Ulmer - http://www.bbrox.org/




More information about the Scummvm-devel mailing list