-
Notifications
You must be signed in to change notification settings - Fork 0
/
constants.h
23 lines (17 loc) · 1.06 KB
/
constants.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#ifndef CONSTANTS_H_INCLUDED
#define CONSTANTS_H_INCLUDED
#define CONST_FOR_ELEM_T "%lf"
typedef double elem_t; //set default stack type
static const char* INPUT_FILE = "solve_square.txt";
static const char* ASSEMBLER_FILE = "assembler.bin";
static const char* OUTPUT_FILE = "output.txt";
static const char* DISASSEMBLER_FILE = "disassembler.txt";
static const double EPSILON = 0.0001; //to compare two double value
static const int S_LENGTH = 255; //maximum string length
static const int AVG_COMMAND = 3; //average argument in command
static const int LABELS_LENGTH = 80; //max labels
static const int RAM_LENGTH = 10; //RAM size
static const int STD_LENGTH_STACK = 20; //default stack length
static const int POISON_BYTE = 127; //poison for memset
static const int POISON_STACK = 23546862; //canary in stack
#endif // CONSTANTS_H_INCLUDED