Some tests of gfortran

Daniel Kraft d@domob.eu
Mon Dec 15 08:59:00 GMT 2008


Daniel Kraft wrote:
> YANI (I hope this isn't already possible and I'm not aware of this): 
> Make gfortran able to parse C-headers on request and verify the 
> signatures there are the correct ones; might be interesting, helpful and 
> maybe not too hard when recycling the existing gcc C-handling? Something 
> like:
> 
> gfortran test.f03 -fverify-bindc=header1.h,header2.h
> 
> This would scan header1.h and header2.h for declarations of any BIND(C) 
> thing in test.f03 and would verify interoperability between those pairs.

Another idea, possibly easier to do, would be the other way round:  Add 
an option to make gfortran output a C-header file with prototypes and 
struct-declarations matching the ones needed for C-interoperability.

Daniel

-- 
Done:  Arc-Bar-Cav-Rog-Sam-Tou-Val-Wiz
To go: Hea-Kni-Mon-Pri-Ran



More information about the Fortran mailing list