[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
6.20 Foreign Function Interface
The more one hacks in Scheme, the more one realizes that there are actually two computational worlds: one which is warm and alive, that land of parentheses, and one cold and dead, the land of C and its ilk.
But yet we as programmers live in both worlds, and Guile itself is half implemented in C. So it is that Guile’s living half pays respect to its dead counterpart, via a spectrum of interfaces to C ranging from dynamic loading of Scheme primitives to dynamic binding of stock C library procedures.
6.20.1 Foreign Libraries | Dynamically linking to libraries. | |
6.20.2 Foreign Functions | Simple calls to C procedures. | |
6.20.3 C Extensions | Extending Guile in C with loadable modules. | |
6.20.4 Modules and Extensions | Loading C extensions into modules. | |
6.20.5 Foreign Pointers | Accessing global variables. | |
6.20.6 Dynamic FFI | Calling arbitrary C functions. |
This document was generated on April 20, 2013 using texi2html 5.0.