Reduct  v4.0.5-1-g4851deb
A functional and immutable language.
Loading...
Searching...
No Matches
Emission

Detailed Description

The emitter converts IR into register-based bytecode that can be executed by the Reduct virtual machine / evaluator.

Functions

REDUCT_API reduct_handle_t reduct_emit (struct reduct *reduct, reduct_handle_t graph)
 Compile Reduct IR into a callable bytecode function.
 

Function Documentation

◆ reduct_emit()

REDUCT_API reduct_handle_t reduct_emit ( struct reduct *  reduct,
reduct_handle_t  graph 
)

Compile Reduct IR into a callable bytecode function.

Parameters
reductPointer to the Reduct structure.
graphHandle to the root of the IR graph.
Returns
Handle to the compiled function.