ForeignFunctionInterface - MLton Standard ML Compiler (SML Compiler)

MLton MLTONWIKIVERSION | ForeignFunctionInterface |
Home Index

MLton's foreign function interface (FFI) extends Standard ML and makes it easy to take the address of C global objects, access C global variables, call from SML to C, and call from C to SML. MLton also provides ML-NLFFI, which is a higher-level FFI for calling C functions and manipulating C data from SML.

## Overview

- Foreign Function Interface Types

- Foreign Function Interface Syntax

## Importing Code into SML

- Calling From SML To C

- Calling From SML To C Function Pointer

## Exporting Code from SML

- Calling From C To SML

## Building System Libraries

- Library Support

Last edited on 2009-06-10 19:26:13 by MatthewFluet.