You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/build_wamr.md
+104-8Lines changed: 104 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ References:
7
7
-[how to build iwasm](../product-mini/README.md): building different target platforms such as Linux, Windows, Mac etc
8
8
-[Blog: Introduction to WAMR running modes](https://bytecodealliance.github.io/wamr.dev/blog/introduction-to-wamr-running-modes/)
9
9
10
-
## WAMR vmcore cmake building configurations
10
+
## building configurations
11
11
12
12
By including the script `runtime_lib.cmake` under folder [build-scripts](../build-scripts) in CMakeList.txt, it is easy to use vmcore to build host software with cmake.
The script `runtime_lib.cmake` defines a number of variables for configuring the WAMR runtime features. You can set these variables in your CMakeList.txt or pass the configurations from cmake command line.
21
21
22
-
Please refer to [a full list of configuration options](./tired_support.md#appendix-all-compilation-flags).
> the fast interpreter runs ~2X faster than classic interpreter, but consumes about 2X memory to hold the pre-compiled code.
46
132
47
-
### **Configure AOT and JITs**
133
+
### **Configure AOT**
48
134
49
135
-**WAMR_BUILD_AOT**=1/0, enable AOT or not, default to enable if not set
136
+
137
+
### **Configure LLVM JIT**
138
+
50
139
-**WAMR_BUILD_JIT**=1/0, enable LLVM JIT or not, default to disable if not set
140
+
141
+
### **Configure Fast JIT**
142
+
143
+
the fast JIT is a lightweight JIT compiler which generates machine code quickly with optimizations for hot functions. Only covers few architectures (x86_64) currently.
144
+
51
145
-**WAMR_BUILD_FAST_JIT**=1/0, enable Fast JIT or not, default to disable if not set
52
-
-**WAMR_BUILD_FAST_JIT**=1 and **WAMR_BUILD_JIT**=1, enable Multi-tier JIT, default to disable if not set
146
+
147
+
> [!NOTE]
148
+
>
149
+
> -**WAMR_BUILD_FAST_JIT**=1 and **WAMR_BUILD_JIT**=1, enable Multi-tier JIT, default to disable if not set
-**WAMR_BUILD_GLOBAL_HEAP_POOL**=1/0, default to disable if not set for all _iwasm_ applications, except for the platforms Alios and Zephyr.
253
350
254
-
> [!NOTE]
255
-
> **WAMR_BUILD_GLOBAL_HEAP_POOL** is used in the _iwasm_ applications provided in the directory `product-mini`. When writing your own host application using WAMR, if you want to use a global heap and allocate memory from it, you must set the initialization argument `mem_alloc_type` to `Alloc_With_Pool`.
351
+
> [!NOTE] > **WAMR_BUILD_GLOBAL_HEAP_POOL** is used in the _iwasm_ applications provided in the directory `product-mini`. When writing your own host application using WAMR, if you want to use a global heap and allocate memory from it, you must set the initialization argument `mem_alloc_type` to `Alloc_With_Pool`.
256
352
> The global heap is defined in the documentation [Memory model and memory usage tunning](memory_tune.md).
257
353
258
354
### **Set the global heap size**
259
355
260
356
-**WAMR_BUILD_GLOBAL_HEAP_SIZE**=n, default to 10 MB (10485760) if not set for all _iwasm_ applications, except for the platforms Alios (256 kB), Riot (256 kB) and Zephyr (128 kB).
261
357
262
-
> [!NOTE]
263
-
> **WAMR_BUILD_GLOBAL_HEAP_SIZE** is used in the _iwasm_ applications provided in the directory `product-mini`. When writing your own host application using WAMR, if you want to set the amount of memory dedicated to the global heap pool, you must set the initialization argument `mem_alloc_option.pool` with the appropriate values.
358
+
> [!NOTE] > **WAMR_BUILD_GLOBAL_HEAP_SIZE** is used in the _iwasm_ applications provided in the directory `product-mini`. When writing your own host application using WAMR, if you want to set the amount of memory dedicated to the global heap pool, you must set the initialization argument `mem_alloc_option.pool` with the appropriate values.
264
359
> The global heap is defined in the documentation [Memory model and memory usage tunning](memory_tune.md).
0 commit comments