From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,1c0da1fd51ed0485 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,1c0da1fd51ed0485 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1994-10-21 12:30:33 PST Path: bga.com!news.sprintlink.net!howland.reston.ans.net!gatech!newsxfer.itd.umich.edu!caen!crl.dec.com!crl.dec.com!pa.dec.com!nntpd2.cxo.dec.com!etre!reuter From: reuter@etre (Jim Reuter) Newsgroups: comp.sys.dec,comp.os.vms Subject: Re: VAXC --> DECC Date: 21 Oct 1994 15:36:43 GMT Organization: Digital Equipment Corporation Message-ID: <388n6b$j1r@nntpd2.cxo.dec.com> References: <1994Oct20.143252.20478@gdstech.grumman.com> NNTP-Posting-Host: etre.cxn.dec.com X-Newsreader: TIN [version 1.1 PL6] Xref: bga.com comp.sys.dec:6552 comp.os.vms:20071 Jon Kreisler (jon@gdstech.grumman.com) wrote: : I am about to take the plunge, converting from VAX C v3.2 to DEC C v4.0 on a : VAX OpenVMS v5.5-2 system. I am aware of the problem of being unable to take : an image created by DEC C and running it on a system only running the older : libraries. : I would like to know if anyone has had unpleasant experiences doing this : conversion or if there are any other potential "headaches" to be wary of. I have done this as part of porting stuff to Alpha AXP systems. For the most part, things go pretty nicely. Here is what I had to watch for: 1) start with /STANDARD=VAXC on DEC C. DEC C type checking is much better and stricter than VAX C, so it will yell if you were sloppy and VAX C let you get away with it. Get your code ported, then change /STANDARD= to tighten things up. 2) If you have any non-portable code protected by things like #ifdef VAX, #ifdef VAXC, #ifdef VMS, etc., make sure you adjust these to do the right things in the environment in which you are running DEC C. Otherwise, all the changes were goodness. Jim Reuter reuter@cookie.enet.dec.com