forked from lanl/APPFL
-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.h
55 lines (37 loc) · 1.08 KB
/
options.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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#ifndef options_h
#define options_h
/* options used by both C and haskell side for conditional compilation */
/* Controls syntax of case expressions and allows main in ConvertSTG
to convert old STG files to new syntax */
#ifndef REWRITE_STG
#define REWRITE_STG 0
#endif
/* 0/1, If 1 use argType enum field in PtrOrLiteral */
#ifndef DEF_ARGTYPE /* used by make multi */
#define USE_ARGTYPE 1
#endif
/* 0/1, If 1 use objType enum field in Obj */
#ifndef DEF_OBJTYPE /* used by make multi */
#define USE_OBJTYPE 1
#endif
/* If 1 use .ident in Obj/Cont */
#define USE_IDENT 1
#define IDENT_SIZE 32
/* If 1 use .name in Infotab */
#define USE_INFOTAB_NAME 1
/* If 1 use .pi = PI header in InfoTab */
#define DEBUG_INFOTAB 0
/* align for objects/infotabs */
#define OBJ_ALIGN 8
/* C side options */
#define OBJ_ALIGNM1 7
#if DEBUG_INFOTAB
#define PI() (3.14159265358979323846)
#endif
/* log level defined in log.h */
#define LOG_LEVEL 7
/* if 1 add support for performance counters */
#define USE_PERFCOUNTERS 1
/* number of threads, temporary solution */
#define NTHREADS 2
#endif