Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site rtech.UUCP
Path: utzoo!linus!philabs!cmcl2!seismo!lll-crg!dual!unisoft!mtxinu!rtech!daveb
From: daveb@rtech.UUCP (Dave Brower)
Newsgroups: net.lang.c,net.lang.f77
Subject: Re: VAX VMS C / UNIX C Compatibility -- Need Info
Message-ID: <589@rtech.UUCP>
Date: Fri, 9-Aug-85 03:44:11 EDT
Article-I.D.: rtech.589
Posted: Fri Aug  9 03:44:11 1985
Date-Received: Wed, 14-Aug-85 02:39:58 EDT
References: <488@rdin.UUCP>
Organization: Relational Technology, Alameda CA
Lines: 20
Xref: linus net.lang.c:5488 net.lang.f77:306

> Is the VAX VMS C-compiler compatible with UNIX?  That is, can I take
> C files that compiled under UNIX and compile them under VMS with no
> changes other than the shell commands inside of system() calls?

No.  You will likely need to run some sed scripts over things to take
into account different # include statement syntax.  DEC-C also does not
know about the void type.  These are mostly annoyances, not show
stoppers.

> Another thing I'm looking for under VMS is the ability to load both
> C and FORTRAN object files into one executable. Does anyone know if
> this works?

Yes.  This is a BIG selling point.  Almost all of DEC's language
products use a compatible calling convention and object format.

-- 
{amdahl|dual|sun|zehntel}\		|"If his brains ran down, how could
{ucbvax|decvax}!mtxinu---->!rtech!daveb |he talk?"
ihnp4!{phoenix|amdahl}___/		|"Happens to people all the time...."