Try enabling fomit-frame-pointer and disabling stack checks

extensions
Volodymyr Shymanskyy 5 years ago
parent b1c3ff8326
commit f31bbe31b3

@ -113,7 +113,7 @@ else()
endif()
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -ggdb -O0")
set(CMAKE_C_FLAGS_RELEASE "-O3 -march=native -Wfatal-errors -fstrict-aliasing") #-fno-inline -fomit-frame-pointer
set(CMAKE_C_FLAGS_RELEASE "-O3 -march=native -Wfatal-errors -fstrict-aliasing -fomit-frame-pointer -fno-stack-check -fno-stack-protector") #-fno-inline
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "-O0")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "-O3")

@ -652,10 +652,6 @@ M3Result m3_CallMain (IM3Function i_function, uint32_t i_argc, const char * co
IM3Runtime runtime = module->runtime;
//#if d_m3AllocateLinearMemory
//_ (Module_EnsureMemorySize (module, & i_function->module->memory, 16777216));
//#endif
u8 * linearMemory = runtime->memory.wasmPages;
m3stack_t stack = (m3stack_t) runtime->stack;

Loading…
Cancel
Save