10#include "virtual_memory.h"
13HASHX_PRIVATE
bool hashx_compile_x86(
const hashx_program* program, uint8_t* code);
15HASHX_PRIVATE
bool hashx_compile_a64(
const hashx_program* program, uint8_t* code);
17#if defined(_M_X64) || defined(__x86_64__)
18#define HASHX_COMPILER_X86
19#define hashx_compile(p,c) hashx_compile_x86(p,c)
20#elif defined(__aarch64__)
21#define HASHX_COMPILER_A64
22#define hashx_compile(p,c) hashx_compile_a64(p,c)
24#define hashx_compile(p,c) (false)
27HASHX_PRIVATE
void hashx_compiler_init(
hashx_ctx* compiler);
28HASHX_PRIVATE
void hashx_compiler_destroy(
hashx_ctx* compiler);
71#ifdef HASHX_COMPILER_A64
72#define COMP_CODE_SIZE (4096 * 2)
74#define COMP_CODE_SIZE (4096 * 1)