* Re: Porting to Alpha's OSF1
[not found] <DF7tJH.21J@applicom.co.il>
@ 1995-09-20 4:00 ` Ron Natalie
1995-09-21 4:00 ` oberman
1995-09-21 4:00 ` Gadzhiev A. M.
1995-09-21 4:00 ` Carl J. Appellof
` (2 subsequent siblings)
3 siblings, 2 replies; 7+ messages in thread
From: Ron Natalie @ 1995-09-20 4:00 UTC (permalink / raw)
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.
-Ron
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Porting to Alpha's OSF1
1995-09-20 4:00 ` Porting to Alpha's OSF1 Ron Natalie
@ 1995-09-21 4:00 ` oberman
1995-09-21 4:00 ` Ron Natalie
1995-09-21 4:00 ` Gadzhiev A. M.
1 sibling, 1 reply; 7+ messages in thread
From: oberman @ 1995-09-21 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Porting to Alpha's OSF1
1995-09-21 4:00 ` oberman
@ 1995-09-21 4:00 ` Ron Natalie
0 siblings, 0 replies; 7+ messages in thread
From: Ron Natalie @ 1995-09-21 4:00 UTC (permalink / raw)
oberman@icaen.llnl.gov wrote:
: 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.
Intel and DEC boxes are the only LSBFirst machines in common use today. The
issue is that if you leave out an htonl on a Sun, you'll never know it as
it's a no-op.
-Ron
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Porting to Alpha's OSF1
1995-09-20 4:00 ` Porting to Alpha's OSF1 Ron Natalie
1995-09-21 4:00 ` oberman
@ 1995-09-21 4:00 ` Gadzhiev A. M.
1 sibling, 0 replies; 7+ messages in thread
From: Gadzhiev A. M. @ 1995-09-21 4:00 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Porting to Alpha's OSF1
[not found] <DF7tJH.21J@applicom.co.il>
1995-09-20 4:00 ` Porting to Alpha's OSF1 Ron Natalie
@ 1995-09-21 4:00 ` Carl J. Appellof
1995-09-21 4:00 ` Richard Readings
1995-09-21 4:00 ` Richard Gorton
3 siblings, 0 replies; 7+ messages in thread
From: Carl J. Appellof @ 1995-09-21 4:00 UTC (permalink / raw)
gil@applicom.co.il (Gil Bregman) wrote:
>I realize I'll have to make sure int's and pointers are not
>mixed,
Also, on Digital UNIX, sizeof(long) == 8, sizeof(int) == 4.
If you use ONC RPC (aka Sun RPC), realize that the RPC "long" datatype
is 32 bits.
--
Carl Appellof
not speaking for
Digital Equipment Corporation
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Porting to Alpha's OSF1
[not found] <DF7tJH.21J@applicom.co.il>
1995-09-20 4:00 ` Porting to Alpha's OSF1 Ron Natalie
1995-09-21 4:00 ` Carl J. Appellof
@ 1995-09-21 4:00 ` Richard Readings
1995-09-21 4:00 ` Richard Gorton
3 siblings, 0 replies; 7+ messages in thread
From: Richard Readings @ 1995-09-21 4:00 UTC (permalink / raw)
To: gil, readings
gil@applicom.co.il (Gil Bregman) 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.
Try our Alpha Developer Support home page:
http://www-usa.partner.digital.com/www-swdev/
In particular
http://www-usa.partner.digital.com/www-swdev/pages/Home/TECH/documents/OSF-migration.html
contains pointers to a number of Migration Guides available on-line. The SunOS
V4.X to DEC OSF/1 Migration Guide listed there may prove useful.
Richard
--
Richard Readings email: readings@bst.dec.com
Digital Equipment Co Ltd.
England
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: Porting to Alpha's OSF1
[not found] <DF7tJH.21J@applicom.co.il>
` (2 preceding siblings ...)
1995-09-21 4:00 ` Richard Readings
@ 1995-09-21 4:00 ` Richard Gorton
3 siblings, 0 replies; 7+ messages in thread
From: Richard Gorton @ 1995-09-21 4:00 UTC (permalink / raw)
If you want to try a quick port to Digital Unix, you might want
to check out:
http://www.novalink.com/freeport-express
And use FreePort Express to translate your SunOS application directly.
--
Richard Gorton Project Leader: mx & FreePort Express
Alpha Migration Tools Digital Equipment Corp.
Reply-to: gorton@tallis.enet.dec.com
All standard disclaimers apply.
^ permalink raw reply [flat|nested] 7+ messages in thread