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>
This commit is contained in:
Kevin O'Connor committed 2017-08-14 21:08:28 -04:00
1 parent 4b5109c1b9
commit 71bb7acb8e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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
+1 -1
View File
@@ -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))