bfx
An interpreter, compiler, and REPL for brainfuck-like languages
Loading...
Searching...
No Matches
compile.h
Go to the documentation of this file.
1
7#ifndef BFX_COMPILE_H
8#define BFX_COMPILE_H
9
10#include "bfx.h"
11
12#ifndef BFX_DEFAULT_COMPILER
16#define BFX_DEFAULT_COMPILER "gcc"
17#endif
18
19#ifndef BFX_DEFAULT_COMPILE_FLAGS
23#define BFX_DEFAULT_COMPILE_FLAGS "-O3 -s -ffast-math -static"
24#endif
25
26#ifndef BFX_COMPILER_LDFLAGS
30#define BFX_COMPILER_LDFLAGS "-lbfx -lm"
31#endif
32
33#ifndef BFX_COMPILE_HEAD
37#define BFX_COMPILE_HEAD "#include <bfx/interpret.h>\nint main(void) {BFX bfx;"
38#endif
39
40#ifndef BFX_TMP_FILE_PATH
44#define BFX_TMP_FILE_PATH "/tmp/bfx.c"
45#endif
46
47void bfx_compile(const char*, const char*, BFX*);
48
49#endif
void bfx_compile(const char *, const char *, BFX *)
Compile Brainfuck code from input_path to output_path.
Definition: compile.c:39
Structure to store generic data for a brainfuck-like esolang interpreter.
Definition: bfx.h:149