From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=0.4 required=5.0 tests=BAYES_00,INVALID_DATE, UNRESOLVED_TEMPLATE autolearn=no autolearn_force=no version=3.4.4 Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!philabs!cmcl2!harvard!husc6!panda!genrad!decvax!decwrl!ucbvax!AMES-IO.ARPA!SERAFINI%FAE From: SERAFINI%FAE@AMES-IO.ARPA.UUCP Newsgroups: net.lang.ada Subject: Fortran/Ada Message-ID: <8605211948.AA00588@ucbvax.Berkeley.EDU> Date: Wed, 21-May-86 13:57:59 EDT Article-I.D.: ucbvax.8605211948.AA00588 Posted: Wed May 21 13:57:59 1986 Date-Received: Sat, 24-May-86 05:09:10 EDT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The ARPA Internet List-Id: >>From: Mike Feldman >>Subject: Fortran-77/Ada >>Another thing to watch out for is that Fortranners often take advantage >>of their knowing that multi-dimensional arrays are mapped "column major", >>and do tricks accordingly; storage mapping for such things is NOT >>defined in the ALRM; it is implementation-dependent, but most compilers >>seem to do it row-major, a la PL/1 or Pascal. The Fortran 77 standard (ANSI X3.9-1978 pp 5.4-5.7) implies that storage should be column-major, and the tricks usually done involve using part of an N dimension array as an N-1 dimension array, especially in argument passing. This could probably be handled by a translator if it could see the subroutine code at the same time it translates the call, so it could know how much of the array to pass. (It wouldn't be easy, but it sounds possible.) While we're on the subject, is there anyone actively (passively?) developing an automatic Fortran-Ada translator? Anybody interested in doing one? (Ever try a team programming project using a network as the primary communication medium?) >>Mike Feldman (MFELDMAN%GWUVM.BITNET@WISCVM.WISC.EDU) >>Dept. of EE&CS >>George Washington University >>Washington, DC 20052 David Serafini Aerodynamics Division NASA/Ames Research Center Moffett Field, CA 94035 ARPA: serafini%far@ames-io.ARPA or serafini@ames-aero.ARPA UUCP: {hplabs,ihnp4,dual,decwrl,allegra}!ames!amelia!serafini