|
infix
A JIT-Powered FFI Library for C
|
A dynamic buffer for staged machine code generation. More...
#include <infix_internals.h>
Public Attributes | |
| uint8_t * | code |
| size_t | capacity |
| size_t | size |
| bool | error |
| infix_arena_t * | arena |
A dynamic buffer for staged machine code generation.
This structure is used during the JIT compilation process. ABI-specific emitters append instruction bytes to this buffer. It automatically grows as needed, allocating memory from a temporary arena that is destroyed after the final code is copied to executable memory.
| infix_arena_t* code_buffer::arena |
The temporary arena used for code generation.
| size_t code_buffer::capacity |
The current capacity of the buffer.
| uint8_t* code_buffer::code |
A pointer to the code buffer, allocated from the arena.
| bool code_buffer::error |
A flag set on allocation failure.
| size_t code_buffer::size |
The number of bytes currently written to the buffer.