BFC-Compiler
A C23 Brainfuck compiler
Loading...
Searching...
No Matches
bfc_backend_t Struct Reference

Immutable callback table implemented by one target backend. More...

#include <bfc_codegen_internal.h>

Data Fields

bfc_target_t target
bfc_error_t(* emit_header )(bfc_asm_t *asm_prog)
bfc_error_t(* emit_data_section )(bfc_asm_t *asm_prog)
bfc_error_t(* emit_symbol )(bfc_asm_t *asm_prog)
bfc_error_t(* emit_end )(bfc_asm_t *asm_prog)
bfc_error_t(* emit_op_add )(bfc_asm_t *asm_prog, int64_t imm)
bfc_error_t(* emit_op_move )(bfc_asm_t *asm_prog, int64_t imm)
bfc_error_t(* emit_op_get )(bfc_asm_t *asm_prog)
bfc_error_t(* emit_op_put )(bfc_asm_t *asm_prog)
bfc_error_t(* emit_op_set )(bfc_asm_t *asm_prog, int64_t imm)
bfc_error_t(* emit_loop_test_z )(bfc_asm_t *asm_prog, const char *label)
bfc_error_t(* emit_loop_test_nz )(bfc_asm_t *asm_prog, const char *label)

Detailed Description

Immutable callback table implemented by one target backend.

Note
Every callback must be non-null for an advertised backend.

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