From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,766b97f0701294d6 X-Google-Attributes: gidfee84,public X-Google-Thread: 1164f8,766b97f0701294d6 X-Google-Attributes: gid1164f8,public From: oberman@icaen.llnl.gov Subject: Re: Porting to Alpha's OSF1 Date: 1995/09/21 Message-ID: <43s7va$m31@lll-winken.llnl.gov>#1/1 X-Deja-AN: 110502839 references: <43po5s$7l3@topaz.sensor.com> organization: Lawrence Livermore National Laboratory newsgroups: comp.unix.osf.osf1,comp.sys.dec In Article <43po5s$7l3@topaz.sensor.com> ron@topaz.sensor.com (Ron Natalie) writes: >Gil Bregman (gil@applicom.co.il) wrote: >: I'm about to port a project of about 200,000 lines of code to Alpha. >: The system works currently on SunOS 4.1.X, Solaris 2.X, HP-UX, AIX 3.2.5 >: and IRIX 5.X. The system involves a lot of TCP/IP sockets stuff, X and >: Motif and RPC. > >There is really only two major differences between the UNIX on the >Alpha and pretty much standard BSD. > > 1. Byte Order > 2. Pointers are 64 bits. Byte order is different from some platforms, but BSD was developed on VAX processors which have the same byte ordering as the Alpha. PCs are also the same. Sun and MIPS are not unless it's a Digital MIPS box. One other, very common problem, is the assumption that a long is 32 bits. I have to routinely change many variable typed as long to int. >If your code is trully portable, then you shouldn't have a problem. >There is only one "ALPHA" hack in our million lines of code. The >rest is just to make sure that you really did use htons, etc... >where appropriate and don't cheat alias pointers to int. Pretty much true from my experience. R. Kevin Oberman Energy Sciences Network (ESnet) National Energy Research Supercomputer Center (NERSC) Lawrence Livermore National Laboratory (LLNL) Internet: koberman@llnl.gov +1 510-422-6955