Unified FFI - Calling Foreign Functions from Pharo

Unified FFI - Calling Foreign Functions from Pharo is a book explaining how to invoke functions written in C and interfacing with C libraries.

About this book

This booklet contains a guide to the unified FFI framework (uFFI) for the Pharo programming language. The aim of this booklet is not to be just an API reference, but to thoroughfully document uFFI in an ordered way for both beginner and advanced users. We present the different concepts of uFFI, from simple call-outs and marshalling up to how to memory is managed, all chapters including examples of code and/or pictures to illustrate those concepts.

Please contact us if you noticed I wrote something wrong or not fully precise.

An Open Book

This book is an open-source book: you can use it and contribute. The content of this book is released under a Creative Commons Attribution-NoCommercial-ShareAlike license.

The full book is available

Latest version on our book farm is available.

Contributions are welcomed.

Authors

Please contact me if you noticed I wrote something wrong or not fully precise.

You can support Stéphane Ducasse.
Thanks in advance.