▼ |  | mzc: PLT Compilation and Packaging

1 | Running mzc
2 | Compiling Modified Modules to Bytecode
3 | Creating and Distributing Stand-Alone Executables
4 | Packaging Library Collections
5 | Compiling and Linking C Extensions
6 | Embedding Scheme Modules via C
7 | Decompiling Bytecode
8 | Compiling to Raw Bytecode
9 | Compiling to Native Code via C
10 | Scheme API for Compilation
| Index

Version: 4.1.4
top← prev up next →

### 6`` Embedding Scheme Modules via C

The --c-mods mode for mzc takes a set of Scheme modules and generates a C source file that can be used as part of program that embeds the PLT Scheme run-time system. See Embedding MzScheme into a Program in Inside: PLT Scheme C API for an explanation of embedding programs.

The generated source file embeds the specified modules, and it defines a declare_modules function that puts the module declarations into a namespace. Thus, using the output of mzc --c-mods, a program can embed PLT Scheme with a set of modules so that it does not need a "collects" directory to load modules at run time.

top← prev up next →