{"title":"用于促进C-Fortran互操作性的h2m-AutoFortran工具","authors":"M. Anderson, Sisi Garnet Liu, D. Nagle","doi":"10.1145/3266145.3266147","DOIUrl":null,"url":null,"abstract":"Large, high-performance programs are often written in Fortran. Modern Fortran supports interoperability with C, which is beneficial because many useful libraries expose a C language interface. However, manually preparing the Fortran interfaces for each routine in a substantial C library to properly link a Fortran program can be time consuming. The h2m-AutoFortran tool can greatly simplify this process by harnessing the power of the Clang Compiler's abstract syntax tree to analyse C header files and translate them into corresponding interoperable Fortran modules. The resulting module may then be compiled and used in the Fortran program, providing correct access to procedures and data in the library.","PeriodicalId":379614,"journal":{"name":"ACM SIGPLAN Fortran Forum","volume":"25 1","pages":"0"},"PeriodicalIF":0.0000,"publicationDate":"2018-08-08","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":"{\"title\":\"The h2m-AutoFortran tool for facilitating C-Fortran interoperability\",\"authors\":\"M. Anderson, Sisi Garnet Liu, D. Nagle\",\"doi\":\"10.1145/3266145.3266147\",\"DOIUrl\":null,\"url\":null,\"abstract\":\"Large, high-performance programs are often written in Fortran. Modern Fortran supports interoperability with C, which is beneficial because many useful libraries expose a C language interface. However, manually preparing the Fortran interfaces for each routine in a substantial C library to properly link a Fortran program can be time consuming. The h2m-AutoFortran tool can greatly simplify this process by harnessing the power of the Clang Compiler's abstract syntax tree to analyse C header files and translate them into corresponding interoperable Fortran modules. The resulting module may then be compiled and used in the Fortran program, providing correct access to procedures and data in the library.\",\"PeriodicalId\":379614,\"journal\":{\"name\":\"ACM SIGPLAN Fortran Forum\",\"volume\":\"25 1\",\"pages\":\"0\"},\"PeriodicalIF\":0.0000,\"publicationDate\":\"2018-08-08\",\"publicationTypes\":\"Journal Article\",\"fieldsOfStudy\":null,\"isOpenAccess\":false,\"openAccessPdf\":\"\",\"citationCount\":\"0\",\"resultStr\":null,\"platform\":\"Semanticscholar\",\"paperid\":null,\"PeriodicalName\":\"ACM SIGPLAN Fortran Forum\",\"FirstCategoryId\":\"1085\",\"ListUrlMain\":\"https://doi.org/10.1145/3266145.3266147\",\"RegionNum\":0,\"RegionCategory\":null,\"ArticlePicture\":[],\"TitleCN\":null,\"AbstractTextCN\":null,\"PMCID\":null,\"EPubDate\":\"\",\"PubModel\":\"\",\"JCR\":\"\",\"JCRName\":\"\",\"Score\":null,\"Total\":0}","platform":"Semanticscholar","paperid":null,"PeriodicalName":"ACM SIGPLAN Fortran Forum","FirstCategoryId":"1085","ListUrlMain":"https://doi.org/10.1145/3266145.3266147","RegionNum":0,"RegionCategory":null,"ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"","PubModel":"","JCR":"","JCRName":"","Score":null,"Total":0}
The h2m-AutoFortran tool for facilitating C-Fortran interoperability
Large, high-performance programs are often written in Fortran. Modern Fortran supports interoperability with C, which is beneficial because many useful libraries expose a C language interface. However, manually preparing the Fortran interfaces for each routine in a substantial C library to properly link a Fortran program can be time consuming. The h2m-AutoFortran tool can greatly simplify this process by harnessing the power of the Clang Compiler's abstract syntax tree to analyse C header files and translate them into corresponding interoperable Fortran modules. The resulting module may then be compiled and used in the Fortran program, providing correct access to procedures and data in the library.