The libffi library provides a portable, high level programming interface to various calling conventions. This allows a programmer to call any function specified by a call interface description at run-time. Ffi stands for Foreign Function Interface. Sourceware - libffi home is here.