[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
26 The C interface
We call all the pieces of program devoted to the interactions between Scheme and another language a foreign interface. In Bigloo, the foreign interface allows Scheme’s functions and variables to be exported to a foreign language and foreign functions and variables to be imported into the Scheme code. Using the foreign interface requires two kind of operations.
- Declarations — type declarations, import declarations or export declarations.
- Foreign reference in the Scheme code.
Declarations take place in a special module clause, see
Module declaration, and reference to foreign variables within
Scheme code requires no special construction. The current release
of Bigloo includes a C and a Java interface. The Java connection is
specified by the means of a java
clause (see section The Java interface).
The C interface is active (that is the extern
module clauses are
read) only when compiling to C. So, when compiling to Jvm the binding
declared in an extern
clause are not bound.
26.1 The syntax of the foreign declarations | ||
26.2 The very dangerous “pragma” Bigloo special forms | ||
26.3 Name mangling | ||
26.4 Embedded Bigloo applications | ||
26.5 Using C bindings within the interpreter |
[ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on October 23, 2011 using texi2html 5.0.