From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,a3e7a54875d85e53 X-Google-Attributes: gidfc89c,public X-Google-Thread: fcda7,a3e7a54875d85e53 X-Google-Attributes: gidfcda7,public X-Google-Thread: fee84,a3e7a54875d85e53 X-Google-Attributes: gidfee84,public From: "Mike Holland" Subject: Re: Porting from Compaq Alpha to HP-UX Date: 2000/01/31 Message-ID: <874g9m$p20@romeo.logica.co.uk>#1/1 X-Deja-AN: 579962070 References: <873qtt$fds@romeo.logica.co.uk> <2000Jan31.083911.1@eisner> Organization: Logica UK Limited X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: comp.sys.hp.hpux,comp.unix.osf.osf1,comp.unix.programmer Indeed! This is made worse by the fact that some messages between the platforms are mapped onto 'C' unions, hence the end-swapping utility needs knowledge of the meaning of the tag fields. Ideally, I could do with a tool which processed 'C' type definitions (plus additional info about the tags) and produced such an end-swapping program. This surely must have been written by someone already! Does anyone know of such a program? Mike Holland Bob Koehler wrote in message <2000Jan31.083911.1@eisner>... >In article <873qtt$fds@romeo.logica.co.uk>, "Mike Holland" writes: >> I need to port a large-ish application (about a million lines of 'C' code) >> from Compaq Alpha UNIX 4.0e to run additionally on HP-UX. It will be >> particularly entertaining because the application exchanges messages with >> programs running on Windows NT. >> > >Alphas running Compaq's UNIX and all systems running WNT are running in >little endian mode. HP-UX runs in big endian mode. If you are >exchanging binary data you will have to byte and/or word swap between >the WNT and HP. > >---------------------------------------------------------------------- >Bob Koehler | Computer Sciences Corporation >Hubble Space Telescope Payload | Federal Sector, Civil Group > Flight Software Team | please remove ".aspm" when replying