This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Big Endian to little endian

Hello,
customer has Freescale application and now is looking for a ARM solution. The problem he has is that the code is writen in big endian. Is there a library which helps him to port his SW to little endian?

Regards
Holger

  • Unfortunately I do not know of such a library, though often the code generation tools (i.e. the C compiler) will have a switch to go between little and big endian, at least this is the case for our DSPs, so depending on how architecture specific their code is for the Freescale device it may not be that difficult to port, chances are that if they had a lot of endian dependent code that it was architecture specific anyway and would require porting effort regardless.

    Generally endianess is more of a problem for cross platform communication, i.e. two devices that share data must agree on endianess, as opposed to a problem for the processor itself, so I am not sure what exactly the endianess conflicts are for your customer's particular situation.

  •  

         If your code is running with your own (old) kernel, can you just run the code in big endian mode on most TI OMAP processors?

         If you have millions of lines of code that are written assuming big endian operation, it is costly to change them over to little endian operation.

     

         Thanks,

     

         Tom

     

     

        

     

     

  • does big endian devices have any priority to little endian devices?

  • Hi,

    Since it is a closed & old thread, we would recommend you to create a new thread for our immediate attention to this new request.

    Thanks for your understanding.

    Regards,
    Sivaraj K