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

Compiled function structure. More...

#include <function.h>

Collaboration diagram for reduct_function_t:

Data Fields

uint32_t instCount
 Number of instructions.
 
uint32_t instCapacity
 Capacity of the instruction array.
 
reduct_inst_tinsts
 An array of instructions.
 
uint32_t * positions
 An array of source positions parallel to the instructions.
 
reduct_const_slot_tconstants
 The array of constant slots forming the constant template.
 
uint16_t constantCount
 Number of constants.
 
uint16_t constantCapacity
 Capacity of the constant array.
 
uint16_t registerCount
 The number of registers the function uses.
 
uint8_t arity
 The number of arguments the function expects.
 
reduct_function_flags_t flags
 The function flags.
 

Detailed Description

Compiled function structure.

Definition at line 67 of file function.h.

Field Documentation

◆ instCount

uint32_t reduct_function_t::instCount

Number of instructions.

Definition at line 69 of file function.h.

◆ instCapacity

uint32_t reduct_function_t::instCapacity

Capacity of the instruction array.

Definition at line 70 of file function.h.

◆ insts

reduct_inst_t* reduct_function_t::insts

An array of instructions.

Definition at line 71 of file function.h.

◆ positions

uint32_t* reduct_function_t::positions

An array of source positions parallel to the instructions.

Definition at line 72 of file function.h.

◆ constants

reduct_const_slot_t* reduct_function_t::constants

The array of constant slots forming the constant template.

Definition at line 73 of file function.h.

◆ constantCount

uint16_t reduct_function_t::constantCount

Number of constants.

Definition at line 74 of file function.h.

◆ constantCapacity

uint16_t reduct_function_t::constantCapacity

Capacity of the constant array.

Definition at line 75 of file function.h.

◆ registerCount

uint16_t reduct_function_t::registerCount

The number of registers the function uses.

Definition at line 76 of file function.h.

◆ arity

uint8_t reduct_function_t::arity

The number of arguments the function expects.

Definition at line 77 of file function.h.

◆ flags

reduct_function_flags_t reduct_function_t::flags

The function flags.

Definition at line 78 of file function.h.


The documentation for this struct was generated from the following file: