ARM endianess under Windows Mobile
-
Saturday, November 14, 2009 8:16 PMHi all! I would like to know if it's possibile in some way to set the operating endianess mode of the cpu running an application under Windows Mobile, developed with Windows Mobile 6 SDK.
Arm processors are bi-endianess ( or at least this is what i fiugured out from googling around ) but does the s.o. or the sdk allow the switch to big endian and back?
All Replies
-
Sunday, November 15, 2009 1:33 AM
No. All versions of Windows run little-endian, period. CHanging the endianness would make the OS puke. Why would you want (or care) to change the endianness anyway?- Proposed As Answer by Joel Ivory JohnsonMVP Sunday, November 15, 2009 10:56 AM
- Marked As Answer by Cunctator Sunday, November 15, 2009 11:29 AM
-
Sunday, November 15, 2009 2:35 AMIntrepreting pre-defined protocols like IP or TCP without having to recalculate at run time every single variable is my main target by now, it would increment a lot the efficency of the code and the speed of the process
-
Sunday, November 15, 2009 10:56 AMWell, I think Chris effectivly explained the ramifications (gotta love that succinct wording!). It would not be appropriate to change the processor behaviour unless you were the one writing the operating system. You'll have to stick with bit shifting and masking.
Joel Ivory JohnsonIt takes all the running you can do to stay in one place.If you want to get somewhere else,you must try to run at least twice as fast as that. -
Sunday, November 15, 2009 11:31 AMWell thank you both for ure help with this thing, I'm gonna use htons() and such similar function so. Bye and W msdn

