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