Little-endian PowerPC
Little-endian PowerPC
Posted Oct 7, 2010 12:57 UTC (Thu) by etienne (guest, #25256)In reply to: Little-endian PowerPC by jengelh
Parent article: Little-endian PowerPC
Not all the fields, just the 32 bits fields - while the 16 bits fields have to be rotated by 8 and the bytes have to be left untouched.
What is costly is not the byteswapping, it is all the code to process fields length (each field length and position is only known in the protocol layer where the field is defined, you cannot do a big function messages_swap() at all).
I would like to have the attribute((big-endian)) in gcc, but I guess the market share of big endian processor no more worth the improvement...
