---
title: Foreign function interface
slug: foreign-function-interface
qid: 
snapshot: enwiki-001342381426
content_hash: 
license: CC BY-SA 4.0
source: https://en.wikipedia.org/w/index.php?oldid=1342381426
tags: [22901456, 23603337, 24745122, 26220375, 36237999, 62213919]
---

# Foreign function interface

> [!note] Provenance
> Snapshot `enwiki-001342381426` · content root `…`
> Derived from <https://en.wikipedia.org/w/index.php?oldid=1342381426> · Licensed CC BY-SA 4.0

A foreign function interface (FFI) is a mechanism by which a program written in one programming language can call interoperable routines or make use of services written or compiled in another one. An FFI is often used in contexts where calls are made into a binary dynamic-link library.

A foreign function interface (FFI) is a mechanism by which a program written in one programming language can call interoperable routines or make use of services written or compiled in another one. An FFI is often used in contexts where calls are made into a binary dynamic-link library.
