Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

Answered ARM endianess under Windows Mobile

  • Saturday, November 14, 2009 8:16 PM
     
     
    Hi 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
     
     Answered
    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?
  • Sunday, November 15, 2009 2:35 AM
     
     
    Intrepreting 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 AM
     
     
    Well, 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 Johnson
    It 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 AM
     
     
    Well thank you both for ure help with this thing, I'm gonna use htons() and such similar function so. Bye and W msdn