endian dilemma

Jerry Feldman gaf at blu.org
Thu Sep 5 14:58:46 EDT 2002


I only mentioned integers. Floating point is similar in some respects. 
Also, there is a reasobably good discussion of endian conversion in the 
Tru64 Unix to HP-UX Itanium porting guide, which is available in html and 
pdf at http://www.tru64unix.compaq.com/docs/pub_page/porting.html
We put in some examples. The Alpha and Intel x86 machines have the same 
endianness, and you are doing 32 bits. 
On 5 Sep 2002 at 13:54, Gregory Gimler wrote:

> Hello all,
> 
> 	I have an interesting problem concerning endian conversion.  I'm helping 
> to port some software over from an O2 to linux.  The software that 
> transmits messages, I have no control over and it can't be modified.  There 
> are several different formats to the messages being transmitted.  Does 
> anyone know of a solution already on the internet somewhere or have any 
> suggestions on how I might approach this problem so I can still read the 
> messages, even though I'm on a little endian machine?  Thanks.
> 
> 
> 
> 																	-Greg
> 
> _______________________________________________
> Discuss mailing list
> Discuss at blu.org
> http://www.blu.org/mailman/listinfo/discuss


-- 
Jerry Feldman <gaf at blu.org>
Associate Director
Boston Linux and Unix user group
http://www.blu.org PGP key id:C5061EA9
PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9




More information about the Discuss mailing list