Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: John Neumann <neumann@titan.com>
Subject: Re: Porting from Compaq Alpha to HP-UX
Date: 2000/02/01	[thread overview]
Message-ID: <38972C88.8C1FDA9D@titan.com> (raw)
In-Reply-To: 874g9m$p20@romeo.logica.co.uk

Hi Mike - Sending binary data although usually much faster (not in all cases)
is a very limited interface due to the obvious.  Since you have the source code
and have some time, try writing a small interface program that will both encode
and decode the binary data structures into an ASCII stream type message.  This
way you can test the code on both machines without having to rewrite a lot of
the bit masking and/or field manipulations.  Start with as small amount of data
you can for parsing and encoding and then grow from there.

We have done similar parsers when trying to port code/data from DEC to SUN/HP
workstations in the past.  The parsers took much less time that trying to
rewrite large amount of algorithms, YMMV.

Good luck!
-John

neumann@titan.com

Mike Holland wrote:

> 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"
> <hollandm@logicaDOTcom> 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




  reply	other threads:[~2000-02-01  5:00 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-31  5:00 Porting from Compaq Alpha to HP-UX Mike Holland
2000-01-31  5:00 ` Bob Koehler
2000-01-31  5:00   ` Bob Koehler
2000-02-01  5:00     ` Mike Holland
2000-01-31  5:00   ` Mike Holland
2000-02-01  5:00     ` John Neumann [this message]
2000-02-01  5:00     ` Rick Jones
2000-01-31  5:00 ` David Peter
2000-02-01  5:00   ` Rick Jones
2000-02-03  5:00     ` Aurel Balmosan
2000-02-05  5:00       ` Shane Seymour
2000-02-04  5:00         ` Computing Services
2000-02-07  5:00           ` Bob Koehler
2000-02-08  5:00             ` Computing Services
2000-02-08  5:00               ` Adam Price
2000-02-08  5:00               ` Daniel S. Riley
2000-02-09  5:00               ` Bob Koehler
2000-02-09  5:00         ` Aurel Balmosan
2000-02-09  5:00           ` Shane Seymour
2000-02-06  5:00       ` hbw
2000-01-31  5:00 ` Rick Jones
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox