VAX VMS C / UNIX C Compatibility --
tp at ndm20
tp at ndm20
Sat Aug 10 07:35:00 AEST 1985
>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?
It is supposed to but some while ago, there was a discussion on
INFO-VAX saying that C in some way violated the VMS procedure calling
standard. Thus there is one or more obscure case that fails. This
is ironic in that the calling standard is highly touted by DEC. This
discussion predated VMS4, so they may have fixed it.
There is also a general rule that happens to apply in this case, that
I/O can only be done from routines in the same language as the main.
This is because that is where most compilers on most machines put the
calls to the I/O system initializers, and few languages share I/O
systems. On some machines, you can't even do it if there are routines
of another language between the main and the routine in question.
At least part of the above statement is not true of C and f77 on Unix,
as they share a common I/O library.
(I am not a Unix guru, please no flames about that)
For more info, I suggest you post you question to INFO-VAX.
Terry Poot
Nathan D. Maier Consulting Engineers
(214)739-4741
Usenet: ...!{allegra|ihnp4}!convex!smu!ndm20!tp
CSNET: ndm20!tp at smu
ARPA: ndm20!tp%smu at csnet-relay.ARPA
More information about the Comp.lang.c
mailing list