Q: gcc/g77

Karsten Breuer Breuer@ika.rwth-aachen.de
Mon Aug 2 02:18:00 GMT 1999


I have two questions about gcc/g77:
1) I'm using egcs based gcc and g77 (version egcs-2.91.66
    19990314(egcs-1.1.2 release) (from FSF-g77 version 0.5.24-
    19981002)) to compile C and Fortran77 on a Linux box with
     kernel 2.2.7. Is there a possibility to inline some C-Functions in
     the Fortran Code while linking the objects for a better
     performance of the executable?
     What statements or flags have to be used on the C and Fortran
     side?
2) Is there a possibility to use C allocated memory in Fortran?
    (e.g.: a C-subroutine do dptr = (double*)malloc(...*sizeof(double))
    and I want to access this array out of Fortran without copying
    all it's values via the parameter list of the subroutine)

Best regards

K.Breuer


More information about the Gcc mailing list