Re-org memory allocation interfaces, add --stack-size and --heap-size option (#193)

This commit is contained in:
wenyongh
2020-03-10 19:54:44 +08:00
committed by GitHub
parent 381859d530
commit 0fdd49ea31
110 changed files with 1264 additions and 2125 deletions

View File

@ -7,6 +7,10 @@ project(runtime-sdk)
SET (CMAKE_C_FLAGS "-O3")
set (CMAKE_BUILD_TYPE Release)
add_definitions(-DBH_MALLOC=wasm_runtime_malloc)
add_definitions(-DBH_FREE=wasm_runtime_free)
add_definitions(-DWA_MALLOC=wasm_runtime_malloc)
add_definitions(-DWA_FREE=wasm_runtime_free)
if (NOT DEFINED WAMR_BUILD_SDK_PROFILE)
set (WAMR_BUILD_SDK_PROFILE "default")