Reduct
v4.0.5-1-g4851deb
A functional and immutable language.
Theme:
Default
Round
Robot
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
*/
29
REDUCT_API
reduct_handle_t
reduct_emit
(
struct
reduct* reduct,
reduct_handle_t
graph);
30
31
/** @} */
32
33
#endif
bitmap.h
Bitmap utilities.
defs.h
REDUCT_API
#define REDUCT_API
Definition
defs.h:24
function.h
Compiled function.
gc.h
Garbage collection.
reduct_emit
REDUCT_API reduct_handle_t reduct_emit(struct reduct *reduct, reduct_handle_t graph)
Compile Reduct IR into a callable bytecode function.
inst.h
Bytecode instruction format.
item.h
Item management.
list.h
List management.
reduct_handle_t
Handle type.
Definition
defs.h:119
include
reduct
emit.h
Generated on Tue Jun 9 2026 16:27:59 for Reduct by
1.9.8