We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi guys, Does anyone know how to make the Keil tool generate little endian code? Is that possible? I am using uVision 1.32 Can newest version of Keil tools generate little endian code? Thanks, Anh
"... always an Intel PC. I don't really care that I have to swap bytes" The conversion routines come free: htons(), ntohs(), etc are, I believe, standard & portable on both Windoze and *NIX.
Loading a short, and then byte swapping is quite inefficient; however loading a short value as 2 8 bits values produce much more efficient code. Erik