Fix aot debugger compilation error on windows (#3370)
Fix aot debugger compilation error on windows as reported in #3184. And update the stack size configuration for product-mini zephyr sample since the native stack overflow check was enhanced and the zephyr-sdk was also upgraded.
This commit is contained in:
@ -16,30 +16,17 @@
|
||||
#endif /* end of BUILD_TARGET_RISCV64_LP64 || BUILD_TARGET_RISCV32_ILP32 */
|
||||
|
||||
#if defined(BUILD_TARGET_RISCV64_LP64) || defined(BUILD_TARGET_RISCV32_ILP32)
|
||||
#if defined(BUILD_TARGET_RISCV64_LP64)
|
||||
#define CONFIG_GLOBAL_HEAP_BUF_SIZE 4360
|
||||
#define CONFIG_APP_STACK_SIZE 288
|
||||
#define CONFIG_MAIN_THREAD_STACK_SIZE 2400
|
||||
#else
|
||||
#define CONFIG_GLOBAL_HEAP_BUF_SIZE 5120
|
||||
#define CONFIG_APP_STACK_SIZE 512
|
||||
#define CONFIG_MAIN_THREAD_STACK_SIZE 4096
|
||||
#endif
|
||||
#define CONFIG_APP_HEAP_SIZE 256
|
||||
#define CONFIG_APP_HEAP_SIZE 512
|
||||
#else /* else of BUILD_TARGET_RISCV64_LP64 || BUILD_TARGET_RISCV32_ILP32 */
|
||||
|
||||
#define CONFIG_GLOBAL_HEAP_BUF_SIZE WASM_GLOBAL_HEAP_SIZE
|
||||
#define CONFIG_APP_STACK_SIZE 8192
|
||||
#define CONFIG_APP_HEAP_SIZE 8192
|
||||
|
||||
#ifdef CONFIG_NO_OPTIMIZATIONS
|
||||
#define CONFIG_MAIN_THREAD_STACK_SIZE 8192
|
||||
#else
|
||||
#define CONFIG_MAIN_THREAD_STACK_SIZE 4096
|
||||
#endif
|
||||
|
||||
#endif /* end of BUILD_TARGET_RISCV64_LP64 || BUILD_TARGET_RISCV32_ILP32 */
|
||||
|
||||
#define CONFIG_MAIN_THREAD_STACK_SIZE 8192
|
||||
|
||||
static int app_argc;
|
||||
static char **app_argv;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user