From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,766b97f0701294d6 X-Google-Attributes: gid1164f8,public X-Google-Thread: fee84,766b97f0701294d6 X-Google-Attributes: gidfee84,public From: alexey@angel.energy.msk.su (Gadzhiev A. M.) Subject: Re: Porting to Alpha's OSF1 Date: 1995/09/21 Message-ID: <43rs2m$g40@angel.energy.msk.su>#1/1 X-Deja-AN: 110502830 references: <43po5s$7l3@topaz.sensor.com> organization: JSC "GVC Energetiky",Moscow,Russia newsgroups: comp.unix.osf.osf1,comp.sys.dec Ron Natalie (ron@topaz.sensor.com) wrote: : 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. : 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. Really i often get one bug in network program . People directly use "unsigned long" as IP address . This is not true for Alpha. And sometimes they use "unsigned long" or long as synonym to "int". If program don't work my first step is : "grep long *" :) : -Ron -- Alexey Gadzhiev Computer Center of Energy Department of Russia e-mail : alexey@angel.energy.msk.su