VAX VMS C / UNIX C Compatibility -- Need Info

Eric N. Starkman eric at grkermi.UUCP
Fri Aug 9 00:22:14 AEST 1985


In article <488 at rdin.UUCP> perl at rdin.UUCP (Robert Perlberg) writes:
>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? A guy
>in my office says that to hope for this is naive at best, but I thought
>that this ability was supposed to be a feature of C.

VMS C does a pretty good job of looking like Unix C, but there are a
number of things under the UNIX operating system that it's sort of
difficult to emulate under VMS.  Consider stat(2), for instance;
the nature of the VMS file system just doesn't lend itself to
duplicating that call.

>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?

Object code is object code.  As far as sharing data, VMS C externs
correspond to FORTRAN common blocks.  Each extern resides in it's
own program section.  VMS C also has 'global' types which correspond
to a global symbol in assembly language.
(All from the VAX/VMS C manual, V1.0, chapters 10 and 11)

					-Eric Starkman
			arpa: starkman at athena.MIT.EDU
			uucp: ...decvax!genrad!panda!ens



More information about the Comp.lang.c mailing list