forked from wasm3/wasm3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathm3_config.h
77 lines (62 loc) · 2.04 KB
/
m3_config.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
//
// m3_config.h
// m3
//
// Created by Steven Massey on 5/4/19.
// Copyright © 2019 Steven Massey. All rights reserved.
//
#ifndef m3_config_h
#define m3_config_h
#include "m3_config_platforms.h"
# ifndef d_m3MaxNumFunctionArgs
# define d_m3MaxNumFunctionArgs 16
# endif
# ifndef d_m3CodePageSize
# define d_m3CodePageSize 4096
# endif
# ifndef d_m3AlignWasmMemoryToPages
# define d_m3AlignWasmMemoryToPages false
# endif
# ifndef d_m3MaxFunctionStackHeight
# define d_m3MaxFunctionStackHeight 2000
# endif
# ifndef d_m3EnableOptimizations
# define d_m3EnableOptimizations false
# endif
# ifndef d_m3EnableFp32Maths
# define d_m3EnableFp32Maths false
# endif
# ifndef d_m3EnableFp64Maths
# define d_m3EnableFp64Maths true
# endif
# ifndef d_m3LogOutput
# define d_m3LogOutput true
# endif
# ifndef d_m3FixedHeap
# define d_m3FixedHeap false
//# define d_m3FixedHeap (32*1024)
# endif
// TODO: This flag is temporary
// It's enabled by default for Linux, OS X, Win32 and Android builds
// and disabled on other platforms, i.e. microcontrollers
# ifndef d_m3AllocateLinearMemory
# define d_m3AllocateLinearMemory false
# endif
# ifndef d_m3FixedHeapAlign
# define d_m3FixedHeapAlign 16
# endif
// logging ---------------------------------------------------------------------------
# define d_m3EnableOpProfiling 0
# define d_m3RuntimeStackDumps 0
# define d_m3TraceExec (1 && d_m3RuntimeStackDumps && DEBUG)
// m3log (...) --------------------------------------------------------------------
# define d_m3LogParse 0
# define d_m3LogCompile 0
# define d_m3LogStack 0
# define d_m3LogEmit 0
# define d_m3LogCodePages 0
# define d_m3LogModule 0
# define d_m3LogRuntime 0
# define d_m3LogExec 0
# define d_m3LogNativeStack 0
#endif /* m3_config_h */