LF95 Linux User's Guide - Lahey Computer Systems
LF95 Linux User's Guide - Lahey Computer Systems
LF95 Linux User's Guide - Lahey Computer Systems
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Chapter 3 Mixed Language ProgrammingData passed between Fortran and C programs must have corresponding attributes. The followingtable describes corresponding data types between C and Fortran. Note that some ofthe listed data types will be unavailable on some C compilers.Table 7: Corresponding Data Types in Fortran and CData Type Fortran C Commentsone-byte logical LOGICAL(1) L1 char L1; 1 bytetwo-byte logical LOGICAL(2) L2 short int L2; 2 bytesfour-byte logical LOGICAL(4) L4 long int L4; 4 byteseight-byte logicalLOGICAL(8) L8long long intL8;8 bytesone-byte integerINTEGER(1) I1signed charI1;1 bytetwo-byte integer INTEGER(2) I2 short int I2; 2 bytesfour-byte integer INTEGER(4) I4 long int I4; 4 bytes54 <strong>Lahey</strong>/Fujitsu <strong>Linux</strong>64 Fortran User’s <strong>Guide</strong>