Article View: gnu.misc.discuss
Article #72514Re: Will the object code from different languages be compatible?
From: David V. Wallace
Date: Wed, 29 Jan 1992 04:24
Date: Wed, 29 Jan 1992 04:24
35 lines
2179 bytes
2179 bytes
Date: Tue, 28 Jan 1992 21:22:25 GMT From: amorgan@CS.Stanford.EDU (Crunchy Frog) Especially good with Spring Surprise--^^^ Right now it is rather difficult to combine, say fortran code with C, or indeed any language with any other. This means, for all practical purposes, that code must be written in one language only (ignoring cases like emacs). Has any thought been given to the possibility of making the GNU language products (when they all come out) able to speak to one another? The idea being that I could write some code in C, some in Fortran, some in LISP, compile link and go. I realize this would be difficult but is it so hard that it is not even worth thinking about? C++ can already call C, vial the linkage modification operator. C and Objective-C can intercall. Next has made C++ intercall with Objective-C; don't know if this will be in in time (haven't checked; could be in already). Fortran will partially work with C, by coincidence. Eventually that will likely be changed (and I presume 'extern "FORTRAN" implemented for C++). C has been extended to imclude static initialisers which are initialised in the same way that C++ is. This also means I guess that libraries could conceivably be implemented in C++ and exported to other languages. Lisp is currently very hard. There isn't a GNU Lisp anyway (except elisp) so this isn't a big deal yet. I haven't seen GNU BASIC yet.
Technical Details
Message-ID:
<GUMBY.92Jan28222420@Cygnus.COM>Path:
arc1-ca.pugleaf.net!sparky!uunet!wupost!bcm!aio!eos!data.nas.nasa.gov!data!gumbyReferences:
<1992Jan28.212225.25601@CSD-NewsHost.Stanford.EDU>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1025b4,3e4536325cf8c41f X-Google-Attributes: gid1025b4,public X-Google-ArrivalTime: 1992-01-29 03:21:51 PST Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!bcm!aio!eos!data.nas.nasa.gov!data!gumby From: gumby@Cygnus.COM (David V. Wallace) Newsgroups: gnu.misc.discuss Subject: Re: Will the object code from different languages be compatible? Message-ID: <GUMBY.92Jan28222420@Cygnus.COM> Date: 29 Jan 1992 04:24:20 GMT References: <1992Jan28.212225.25601@CSD-NewsHost.Stanford.EDU> Sender: news@nas.nasa.gov Organization: Cygnus Support, Palo Alto, California Lines: 35 In-Reply-To: amorgan@CS.Stanford.EDU's message of Tue, 28 Jan 1992 21:22:25 GMT