[Expat-discuss] Data misalignment on PocketPC platform

Chris Percival cpercival@interaxis.co.uk
Fri Apr 26 07:54:42 2002


I have compiled Expat to run on a PocketPC device with an ARM processor
(with the XML_UNICODE #def).  However certain bits of code can produce a
Datatype Misalignment exception, for example line 317 of xmltok.c (*to++ =
*from++;), as I guess the processor can't do that operation if the address
is not word aligned?

So my options are:

1. To find a version that has this fixed (or fix it myself using the
__unaligned macro maybe?).
or
2. To not use the XML_UNICODE #def and hope the problem goes away (and do
the unicode to ascii conversion myself).

Any comments/suggestions welcome. Thanks for your time.

Chris