Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: c programming q

Author: Vincent Lejeune

Date: 00:33:40 05/14/03

Go up one level in this thread


On May 13, 2003 at 22:55:33, Robert Hyatt wrote:

>On May 13, 2003 at 18:33:56, Dieter Buerssner wrote:
>
>>On May 13, 2003 at 14:03:06, Robert Hyatt wrote:
>>
>>>I never saw a reference to "int" in  what I responded to.  In fact, the
>>>example given was a struct with four bytes.
>>
>>You probably overlooked it. There was a union. One part was the struct of the
>>four chars, the other part was the int.
>>
>>In http://www.talkchess.com/forums/1/message.html?296029 you cited the whole
>>post including the union and the "int" (move). I think, from the context it was
>>rather clear that the question "Is there any specific order in which the chars
>>are aligned into the int, or is it compiler-dependent?", were refering to those
>>parts of the union.
>>
>>Regards,
>>Dieter
>
>
>In that regard, then it was my error.  The "endian" stuff is well-known.
>I even have an "ENDIAN" macro in crafty to make it compile and work on big
>and little endian machines..


For those, like me, who read about big and little endian here for some times and
didn't know what it is : http://www.cs.umass.edu/~verts/cs32/endian.html



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.