Article View: net.lang.f77
Article #254Re: VAX VMS C / UNIX C Compatibility --
From: tp
Date: Tue, 13 Aug 1985 20:11
Date: Tue, 13 Aug 1985 20:11
33 lines
2018 bytes
2018 bytes
/* Written 4:35 pm Aug 9, 1985 by tp@ndm20 in ndm20:net.lang.c */
>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@smu
ARPA: ndm20!tp%smu@csnet-relay.ARPA
/* End of text from ndm20:net.lang.c */
Technical Details
Message-ID:
<3500001@ndm20>Path:
arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!convex!ndm20!tpReferences:
<488@rdin.UUCP>Show Full Headers
Complete Article Headers
Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: Notesfiles $Revision: 1.7.0.8 $; site ndm20 Path: arc1-ca.pugleaf.net!utzoo!watmath!clyde!cbosgd!ihnp4!inuxc!pur-ee!uiucdcs!convex!ndm20!tp From: tp@ndm20 Newsgroups: net.lang.f77 Subject: Re: VAX VMS C / UNIX C Compatibility -- Message-ID: <3500001@ndm20> Date: Tue, 13-Aug-85 16:11:00 EDT Article-I.D.: ndm20.3500001 Posted: Tue Aug 13 16:11:00 1985 Date-Received: Sun, 18-Aug-85 04:36:18 EDT References: <488@rdin.UUCP> Lines: 33 Nf-ID: #R:rdin.UUCP:-48800:ndm20:3500001:000:1391 Nf-From: ndm20!tp Aug 13 15:11:00 1985