From b37b377a7eb9b5a6e50ce824e25b0a892a51529a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20Str=C3=B6mbergson?= Date: Thu, 13 Oct 2022 09:26:49 +0200 Subject: [PATCH] Change optimization to Os since we want compact code --- hw/application_fpga/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/application_fpga/Makefile b/hw/application_fpga/Makefile index a497712..f711e8e 100644 --- a/hw/application_fpga/Makefile +++ b/hw/application_fpga/Makefile @@ -34,7 +34,7 @@ OBJCOPY ?= llvm-objcopy-14 CC = clang-14 CFLAGS = -target riscv32-unknown-none-elf -march=rv32imc -mabi=ilp32 \ - -static -std=gnu99 -O2 -ffast-math -fno-common -fno-builtin-printf \ + -static -std=gnu99 -Os -ffast-math -fno-common -fno-builtin-printf \ -fno-builtin-putchar -nostdlib -mno-relax -Wall -flto -DNOCONSOLE AS = clang-14