From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,b265a36017ac1dd0,start X-Google-Attributes: gidfee84,public From: Kevin Barrett Subject: Endian problems with the Alpha Date: 1996/05/01 Message-ID: <31883EE2.59FEC2A2@rt66.com>#1/1 X-Deja-AN: 152537133 cc: kbarrett@sim.irk.aetc.af.mil content-type: text/plain; charset=us-ascii organization: Rt66.COM, Public Internet Access in New Mexico mime-version: 1.0 newsgroups: comp.unix.osf.osf1 x-mailer: Mozilla 2.0 (X11; I; Linux 1.2.13 i586) We have an Encore Infinity R/T model 300 system (6U VME with an Alpha SBC and reflective memory) connected via reflective memory to several devices, including an Encore RSX machine. It is being used primarily as a high-throughput interface system between the devices. Our problem is that the Alpha's data representation is little-endian, but all the connected devices are big-endian. The reflective memory system does not do conversions or swapping, so we are stuck with having to explicitly convert any data the Alpha has to process itself. Does anyone know of a facility provided by OSF's C compiler (or the Alpha itself) to automatically operate on big-endian values? Might there be a library of good (efficient) conversion routines we can use? We also have to do some conversions of floating-point formats (IEEE/IBM). Any response would be appreciated... Thanks! - Kevin Barrett kbarrett@sim.irk.aetc.af.mil (I am posting this message from my personal account; please reply to the above address. Thanks... KB-)