# Automated Fortran--C++ Bindings for Large-Scale Scientific Applications

arXiv: https://arxiv.org/abs/1904.02546 · HTML: https://mlsanity.com/paper/1904.02546/

## Key facts

- Cited by 1 papers in the map (data through 14 Oct 2026).
- First posted on arXiv 4 Apr 2019.

## Built on by (most cited first, 1 of 1)

- [Assessment of machine learning methods for state-to-state approaches](https://mlsanity.com/paper/2104.01042/) (2021)

## Abstract (arXiv)

Although many active scientific codes use modern Fortran, most contemporary scientific software "libraries" are implemented in C and C++. Providing their numerical, algorithmic, or data management features to Fortran codes requires writing and maintaining substantial amounts of glue code. This article introduces a tool that automatically generates native Fortran 2003 interfaces to C and C++ libraries. The tool supports C++ features that have no direct Fortran analog, such as templated functions and exceptions. A set of simple examples demonstrate the utility and scope of the tool, and timing measurements with a mock numerical library illustrate the minimal performance impact of the generated wrapper code.
