What does it take to make code endian clean?

2001-03-13 Thread Gjermund Gusland Thorsen
What does it take to make code not depending on little or big endian synclink.c did not compile in the first place on my PMac 7600/132MHz I commented out the asm code in it; it was for x86 debugging, now it compilesÂ… -- Yours Sincerely, Gjermund Gusland Thorsen For evil to triumph it is

Re: What does it take to make code endian clean?

2001-03-13 Thread Geert Uytterhoeven
On 13 Mar 2001, Gjermund Gusland Thorsen wrote: What does it take to make code not depending on little or big endian - Never make assumptions about the ordering of bytes in a multi-word entity (short, int, long, long long). I.e. don't cast the address of an int to a char pointer and