File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ OUT_NAME ?= example_cifar10_caffe
2929ifeq ($(TOOLCHAIN ) ,mwdt)
3030# MWDT specific options
3131CFLAGS = -Hnocopyr -Hpurge -Hheap=8K -Hstack=1K -Hfxapi -e_start -Bgrouplib -Hldopt=-q -Hsdata0 -Xdsp_ctrl=postshift,guard,convergent -Hdense_prologue
32+
33+ # use compact CRT
34+ CFLAGS += -Hcl -Hcrt_argv -Hcrt_fast_memcpy -Hcrt_fast_memset -Hxcheck -Hcrt_initbss
35+
3236else
3337PREBUILT_LIB ?= $(EMBARC_MLI_DIR ) /examples/prebuilt/libmli.a
3438
Original file line number Diff line number Diff line change @@ -29,6 +29,10 @@ OUT_NAME ?= example_har_smartphone
2929ifeq ($(TOOLCHAIN ) ,mwdt)
3030# MWDT specific options
3131CFLAGS = -Hnocopyr -Hpurge -Hheap=8K -Hstack=1K -Hfxapi -e_start -Bgrouplib -Hldopt=-q -Hsdata0 -Xdsp_ctrl=postshift,guard,convergent -Hdense_prologue
32+
33+ # use compact CRT
34+ CFLAGS += -Hcl -Hcrt_argv -Hcrt_fast_memcpy -Hcrt_fast_memset -Hxcheck -Hcrt_initbss
35+
3236else
3337PREBUILT_LIB ?= $(EMBARC_MLI_DIR ) /examples/prebuilt/libmli.a
3438
You can’t perform that action at this time.
0 commit comments