diff --git a/platforms/README.md b/platforms/README.md index 12ccdaf..3ff72ef 100644 --- a/platforms/README.md +++ b/platforms/README.md @@ -17,9 +17,13 @@ Linux 22.97s Native C implementation 2.55s Linux 50.00s -### VoCore2 (MT7628AN @ 580 MHz) +### VoCore2 mips32r2 (MT7628AN @ 580MHz) Native C implementation 6.21s OpenWRT 2m 38s + +### Xiaomi Mi Router 3G mips32r2 (MT7621AT @ 880MHz) +Native C implementation 8.83s +OpenWRT 3m 20s ``` ## wasm3 on MCUs diff --git a/platforms/openwrt/build/Makefile b/platforms/openwrt/build/Makefile index 431b561..2b15e5d 100644 --- a/platforms/openwrt/build/Makefile +++ b/platforms/openwrt/build/Makefile @@ -4,7 +4,7 @@ M3_SRC_DIR := ../../../source SOURCES := ../../app/main.c \ $(shell find $(M3_SRC_DIR) -type f -name '*.c') -override CFLAGS += -std=c99 -O3 -flto -Wfatal-errors -fstrict-aliasing -I$(M3_SRC_DIR) +override CFLAGS += -std=c99 -O3 -flto -Wno-error=format-security -Wfatal-errors -fstrict-aliasing -I$(M3_SRC_DIR) all: wasm3 diff --git a/platforms/openwrt/wasm3/wasm3/Makefile b/platforms/openwrt/wasm3/wasm3/Makefile index df9384b..3a76baa 100755 --- a/platforms/openwrt/wasm3/wasm3/Makefile +++ b/platforms/openwrt/wasm3/wasm3/Makefile @@ -25,7 +25,6 @@ define Package/wasm3 CATEGORY:=Languages TITLE:=Fast WASM interpreter URL:=https://github.com/vshymanskyy/m3 -# DEPENDS:=+libpthread endef define Package/wasm3/description @@ -38,10 +37,6 @@ MAKE_FLAGS += LD="$(TARGET_CC)" MAKE_FLAGS += RELEASE=1 MAKE_FLAGS += OPENWRT_UCLIBC=1 -#define Package/hello/Build/Compile -# $(MAKE) -C $(PKG_BUILD_DIR) hello -#endef - define Package/wasm3/install $(INSTALL_DIR) $(1)/usr/bin $(INSTALL_BIN) $(PKG_BUILD_DIR)/$(MAKE_PATH)/wasm3 $(1)/usr/bin/