comp.lang.ada
 help / color / mirror / Atom feed
* Fortran/Ada
@ 1986-05-21 17:57 SERAFINI%FAE
  1986-05-28  3:10 ` Fortran/Ada Jeff Bartlett
  0 siblings, 1 reply; 5+ messages in thread
From: SERAFINI%FAE @ 1986-05-21 17:57 UTC (permalink / raw)



>>From:           Mike Feldman   <MFELDMAN%GWUVM.BITNET@WISCVM.WISC.EDU>
>>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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~1986-06-22  1:39 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1986-05-21 17:57 Fortran/Ada SERAFINI%FAE
1986-05-28  3:10 ` Fortran/Ada Jeff Bartlett
1986-06-02 19:08   ` Fortran/Ada John B. Goodenough
1986-06-20 14:55   ` Fortran/Ada stt
1986-06-22  1:39     ` Fortran/Ada Kenneth Ng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox