aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKevin O'Connor <kevin@koconnor.net>2017-08-14 13:59:41 -0400
committerKevin O'Connor <kevin@koconnor.net>2017-08-14 21:08:28 -0400
commit71bb7acb8e9ec5a9838d60604ac9e74614e234b4 (patch)
treec9ef6d22916d4b6733ae1425e0228a9bea577ca1
parent4b5109c1b9bf5ac74d749dc63a17dbf3f840482f (diff)
downloadkutter-71bb7acb8e9ec5a9838d60604ac9e74614e234b4.tar.gz
kutter-71bb7acb8e9ec5a9838d60604ac9e74614e234b4.tar.xz
kutter-71bb7acb8e9ec5a9838d60604ac9e74614e234b4.zip
pru: Compile with -Os instead of -O2
The gcc -Os option significantly reduces the size of the PRU binary and it has little impact on performance. Signed-off-by: Kevin O'Connor <kevin@koconnor.net>
-rw-r--r--docs/Features.md2
-rw-r--r--src/pru/Makefile2
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/Features.md b/docs/Features.md
index 49980118..9c718977 100644
--- a/docs/Features.md
+++ b/docs/Features.md
@@ -86,7 +86,7 @@ represent total number of steps per second on the micro-controller.
| 20Mhz AVR | 189K | 125K |
| 16Mhz AVR | 151K | 100K |
| Arduino Due (ARM) | 382K | 337K |
-| Beaglebone PRU | 689K | 689K |
+| Beaglebone PRU | 680K | 680K |
On AVR platforms, the highest achievable step rate is with just one
stepper stepping. On the Due, the highest step rate is with two
diff --git a/src/pru/Makefile b/src/pru/Makefile
index ae70a7da..38f262ec 100644
--- a/src/pru/Makefile
+++ b/src/pru/Makefile
@@ -6,7 +6,7 @@ CROSS_PREFIX=pru-
dirs-y += src/pru src/generic
dirs-y += lib/pru_rpmsg
-CFLAGS += -minrt -mmcu=am335x.pru1
+CFLAGS += -Os -minrt -mmcu=am335x.pru1
CFLAGS += -Ilib/pru_rpmsg/include -Ilib/pru_rpmsg/include/am335x
CFLAGS_klipper.elf := $(filter-out -mmcu=%, $(CFLAGS))