Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!rutgers!princeton!udel!garrett From: garrett@udel.EDU (Joel Garrett) Newsgroups: comp.lang.fortran Subject: Re: Microsoft C, FORTRAN and Pascal Message-ID: <386@louie.udel.EDU> Date: Fri, 24-Jul-87 00:32:37 EDT Article-I.D.: louie.386 Posted: Fri Jul 24 00:32:37 1987 Date-Received: Sat, 25-Jul-87 11:48:22 EDT References: <998@vu-vlsi.UUCP> Organization: University of Delaware Lines: 44 Keywords: compatible subroutines and the ANSI standard Summary: MS Inter-language calling... In article <998@vu-vlsi.UUCP>, sword@vu-vlsi.UUCP (Ronin) writes: > > A question. I was reading some advertising material from a > past issue of PC TECH Journal which was stating that > Microsoft FORTRAN '77 compiler, their C compiler and their > Pascal compiler were all now compatible at the subroutine > level. > > Do I understand this properly to mean that a c subroutine > compiled in C to an .OBJ file can be called by FORTRAN? Well, it isn't always straightforward, but yes, there is support for interlanguage calling. Just as in any other system that supports this, the MS documentation reminds the programmer of the things that have to be kept in mind for this kind of thing (such as the different ordering and numbering of multi-dimensional arrays used by the different languages, string formats, but the MS languages have extensions to them (especially in data types) to make this a lot easier. (ie you can declare something as a C string [null-terminated] in a FORTRAN program) > Does Microsoft FORTRAN 4.0 not follow the ANSI standard now, > concerning arrays? Not sure what you're asking here. If you're talking about the pending 8x standard, I doubt it. Otherwise, the interlanguage programming documentation that has come with FORTRAN since 3.? has stated that the array ordering for MS FORTRAN is opposite to that of Pascal and C (I forget the order, too - don't want to start that discussion again here :-) > ..lar > > Larry Esmonde, Director of SWORD (Students Working On R & D) > Computer Science Dept, Villanova Univ. > Villanova, Pa. 19085 > UUCP: {bpa,cbmvax,psuvax1}!vu-vlsi!sword / BITNET: sword@vuvaxcom Joel Joel Garrett, Research Associate Center for Composite Materials, University of Delaware Newark, De. 19716 ARPA: garrett@udel-ccm.arpa OR garrett@udel.edu