From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,2de6f75215969278 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-11-21 23:06:23 PST Path: nntp.gmd.de!xlink.net!howland.reston.ans.net!gatech!rutgers!uwvax!sinetnews!news.u-tokyo.ac.jp!wnoc-tyo-news!wnoc-sfc-news!news.dec-j!jrd.dec.com!mets86.mse.tay.dec.com!lead.zk3.dec.com!crl.dec.com!pa.dec.com!therag.zso.dec.com!oleum.zso.dec.com!cja From: cja@oleum.zso.dec.com (Carl J. Appellof) Newsgroups: comp.sys.dec Subject: Re: Porting applications from UNIX to VMS Date: 21 Nov 1994 17:23:20 GMT Organization: Digital Equipment Corporation Message-ID: <3aql28$rs6@therag.zso.dec.com> References: <3ajua4$cmg@dublin.eiffel.com> NNTP-Posting-Host: oleum.zso.dec.com X-Newsreader: TIN [version 1.2 PL2] Tom Hoffman (tomh@dublin.eiffel.com) wrote: > We are currently attempting to port an application from UNIX to VMS. > We would like to know if there are any tools, documents, white-papers, > newsgroups, etc. available to help make the task easier. We would > especially like to get VMS versions of some UNIX tools like make, > yacc, lex, flex, etc. > >... > > I would also like to know if anyone has had experience (good or bad) with > DEC's VMS Posix. In my last job, we ported a rather large UNIX server application to VMS using the POSIX for OpenVMS environment. The application used TCP/IP, signals, fork, and was already designed to be portable among many UNIXes. Within the POSIX environment, you'll see a lot of old UNIX friends: make, lex, yacc, rcs. The "sh" shell is the Korn shell ("ksh") as far as I can tell. I won't say the job was easy, but it was a lot easier than porting to "native VMS". As someone else pointed out, the compiler can be the biggest stumbling block. VAXC was a major pain for us. A more recent port of a new version of the same code using DECC was pretty painless. Even after your application is ported, you should be on the lookout for common practices on UNIX that don't work so well on VMS. One common one is a UNIX application's tendency to use fork() a lot. This works on VMS POSIX, but is pretty slow on VMS because process creation on VMS is slow. You'll also see this effect if your product uses shell scripts that invoke a lot of non-builtin commands. Good luck. -- Carl J. Appellof (cja@zso.dec.com) NT Systems Group Digital Equipment Corporation