Reduct  v4.0.5-1-g4851deb
A functional and immutable language.
Loading...
Searching...
No Matches
emit.h
Go to the documentation of this file.
1#ifndef REDUCT_EMIT_H
2#define REDUCT_EMIT_H 1
3
4#include <reduct/bitmap.h>
5#include <reduct/defs.h>
6#include <reduct/function.h>
7#include <reduct/gc.h>
8#include <reduct/inst.h>
9#include <reduct/item.h>
10#include <reduct/list.h>
11
12/**
13 * @file emit.h
14 * @brief Bytecode Emission
15 * @defgroup emit Emission
16 *
17 * The emitter converts IR into register-based bytecode that can be executed by the Reduct virtual machine / evaluator.
18 *
19 * @{
20 */
21
22/**
23 * @brief Compile Reduct IR into a callable bytecode function.
24 *
25 * @param reduct Pointer to the Reduct structure.
26 * @param graph Handle to the root of the IR graph.
27 * @return Handle to the compiled function.
28 */
30
31/** @} */
32
33#endif
Bitmap utilities.
#define REDUCT_API
Definition defs.h:24
Compiled function.
Garbage collection.
REDUCT_API reduct_handle_t reduct_emit(struct reduct *reduct, reduct_handle_t graph)
Compile Reduct IR into a callable bytecode function.
Bytecode instruction format.
Item management.
List management.
Handle type.
Definition defs.h:119