]> granicus.if.org Git - esp-idf/commitdiff
soc/rtc_clk: reduce data size by disabling CSWTCH generation
authorIvan Grokhotkov <ivan@espressif.com>
Sun, 29 Jul 2018 05:27:06 +0000 (08:27 +0300)
committerIvan Grokhotkov <ivan@espressif.com>
Tue, 21 Aug 2018 05:02:46 +0000 (13:02 +0800)
Saves about 200 bytes of DRAM at the expense of 4 bytes in IRAM.

components/soc/component.mk
components/soc/esp32/component.mk [new file with mode: 0644]

index 1c0f3d421802e9318c0c3c327106a133318aba5b..6dfb407f1f236a988505919405edd5358fcae74f 100644 (file)
@@ -4,3 +4,5 @@ SOC_NAME := esp32
 COMPONENT_SRCDIRS := $(SOC_NAME) src/
 
 COMPONENT_ADD_INCLUDEDIRS := $(SOC_NAME)/include include
+
+-include $(COMPONENT_PATH)/$(SOC_NAME)/component.mk
diff --git a/components/soc/esp32/component.mk b/components/soc/esp32/component.mk
new file mode 100644 (file)
index 0000000..83a2ef7
--- /dev/null
@@ -0,0 +1 @@
+esp32/rtc_clk.o: CFLAGS += -fno-jump-tables -fno-tree-switch-conversion