# HG changeset patch # User Ethan Zonca # Date 2020-04-24 19:59:07 # Node ID 2e9e37796ebcf2136be61c2a4b549ef51bc0beba # Parent c396707da34164eccf3f605a5f2930efd0c2ef42 Switch to newlib nano. Untested on actual hardware. Saves flash/ram. diff --git a/.hgignore b/.hgignore --- a/.hgignore +++ b/.hgignore @@ -2,3 +2,9 @@ syntax: glob *\.o *\.d +analysis/* +.settings/* +Debug/* +build/* +*.orig +archive/* diff --git a/Makefile b/Makefile --- a/Makefile +++ b/Makefile @@ -39,6 +39,7 @@ JTENCODE_INCLUDES = -Ilib/jtencode # USER_CFLAGS: user C flags (enable warnings, enable debug info) USER_CFLAGS = -Wall -g -ffunction-sections -fdata-sections -Os -fno-common --function-sections -fdata-sections #USER_CFLAGS += -flto +USER_CFLAGS += --specs=nano.specs # USER_LDFLAGS: user LD flags USER_LDFLAGS = -fno-exceptions -ffunction-sections -fdata-sections -Wl,--gc-sections