AnsweredAssumed Answered

Endianess Problem with 64 bit datatype

Question asked by Karthigeyan Natanam on Aug 6, 2013
Latest reply on Aug 23, 2013 by Ioseph Martinez Pelayo

We are developing software on vybrid processor(A5 core). We are facing issues with the 64 bit data type. When we tried to print the value using printf or sprintf, the values are printed wrongly.

Then we had identified that it is beacause of endian problem. The Lower 32 bit value is placed in upper 32 bit place and so the it is printing big numbers even for small value

for example when we tried to print the value 0x19 of long long int data type, it is printed as 0x1900000000.

Please let us know , how to overcome this issue.

Note : We are using gcc compiler