-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBrainFVM.h
30 lines (23 loc) · 891 Bytes
/
BrainFVM.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
//===-- BrainFVM.h - BrainF interpreter header ----------------*- C++ -*-===//
//
// The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===--------------------------------------------------------------------===//
#ifndef BRAINF_VM_H
#define BRAINF_VM_H
#include "stdint.h"
#include <cstring>
/// BytecodeArray - An array of label pointers representing the
/// source program. Indexed by PC address.
extern void **BytecodeArray;
/// AltBytecodeArray - An array of label pointers representing the alternate
/// version of the source program. Initially, this is the recording version
/// of the program.
extern void **AltBytecodeArray;
/// JumpMap - An array of on-the-side data used by the interpreter.
/// Indexed by PC address.
extern size_t *JumpMap;
#endif