Skip to content

Commit 7093c75

Browse files
dyudakovJaccovG
authored andcommitted
updated examples makefile set set minimum sufficient heap and stack size
1 parent 4e86f50 commit 7093c75

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

examples/example_cifar10_caffe/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ BUILD_DIR ?= ./obj
4747
OUT_NAME ?= example_cifar10_caffe
4848
ifeq ($(TOOLCHAIN),mwdt)
4949
# MWDT specific options
50-
CFLAGS = -Hnocopyr -Hpurge -Hheap=8K -Hstack=4K -Hfxapi -e_start -Bgrouplib -Hldopt=-q -O0
50+
CFLAGS = -Hnocopyr -Hpurge -Hheap=8K -Hstack=1K -Hfxapi -e_start -Bgrouplib -Hldopt=-q -O0
5151
else
5252
PREBUILT_LIB ?= $(EMBARC_MLI_DIR)/examples/prebuilt/libmli.a
5353

@@ -65,7 +65,7 @@ CFLAGS += -DV2DSP_XY
6565

6666
# GNU toolchain linker specific options
6767
LDFLAGS = --defsym=__DEFAULT_HEAP_SIZE=8k
68-
LDFLAGS += --defsym=__DEFAULT_STACK_SIZE=4k
68+
LDFLAGS += --defsym=__DEFAULT_STACK_SIZE=1k
6969
LDFLAGS += -Map $(OUT_DIR)/$(OUT_NAME).map
7070

7171
#specific options for run the example with the MetaWare Debuger on the nSim simulator.

examples/example_har_smartphone/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ BUILD_DIR ?= ./obj
4747
OUT_NAME ?= example_har_smartphone
4848
ifeq ($(TOOLCHAIN),mwdt)
4949
# MWDT specific options
50-
CFLAGS = -Hnocopyr -Hpurge -Hheap=16K -Hstack=4K -Hfxapi -e_start -Bgrouplib -Hldopt=-q -O0
50+
CFLAGS = -Hnocopyr -Hpurge -Hheap=8K -Hstack=1K -Hfxapi -e_start -Bgrouplib -Hldopt=-q -O0
5151
else
5252
PREBUILT_LIB ?= $(EMBARC_MLI_DIR)/examples/prebuilt/libmli.a
5353

@@ -64,8 +64,8 @@ CFLAGS += -DV2DSP_XY
6464
#CFLAGS += -DV2DSP_WIDE
6565

6666
# GNU toolchain linker specific options
67-
LDFLAGS = --defsym=__DEFAULT_HEAP_SIZE=16k
68-
LDFLAGS += --defsym=__DEFAULT_STACK_SIZE=4k
67+
LDFLAGS = --defsym=__DEFAULT_HEAP_SIZE=8k
68+
LDFLAGS += --defsym=__DEFAULT_STACK_SIZE=1k
6969
LDFLAGS += -Map $(OUT_DIR)/$(OUT_NAME).map
7070

7171
#specific options for run the example with the MetaWare Debuger on the nSim simulator.

0 commit comments

Comments
 (0)