Skip to content

Commit

Permalink
Use O2 instead of O3
Browse files Browse the repository at this point in the history
This leads to smaller code size which has actually a beneficial impact
on performance.
  • Loading branch information
ohmtech-rdi committed May 24, 2024
1 parent 96e4195 commit add35ea
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build-system/erbb/generators/daisy/Makefile_template
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ FLAGS += -O0 -g -ggdb -funsafe-math-optimizations
endif

ifeq ($(CONFIGURATION),Release)
FLAGS += -O3 -DNDEBUG=1 -funsafe-math-optimizations
FLAGS += -O2 -DNDEBUG=1 -funsafe-math-optimizations
endif

ifdef SEMIHOSTING
Expand Down
2 changes: 1 addition & 1 deletion build-system/erbb/generators/fuzz/Makefile_template
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ FLAGS += -O0 -g -ggdb -funsafe-math-optimizations
endif

ifeq ($(CONFIGURATION),Release)
FLAGS += -O3 -DNDEBUG=1 -funsafe-math-optimizations
FLAGS += -O2 -DNDEBUG=1 -funsafe-math-optimizations
endif

ifdef SEMIHOSTING
Expand Down
2 changes: 1 addition & 1 deletion build-system/erbb/generators/perf/Makefile_template
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ FLAGS += -O0 -g -ggdb -funsafe-math-optimizations
endif

ifeq ($(CONFIGURATION),Release)
FLAGS += -O3 -DNDEBUG=1 -funsafe-math-optimizations
FLAGS += -O2 -DNDEBUG=1 -funsafe-math-optimizations
endif

ifdef SEMIHOSTING
Expand Down
2 changes: 1 addition & 1 deletion build-system/erbb/generators/simulator/Makefile_template
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ FLAGS += -O0 -g -funsafe-math-optimizations
endif

ifeq ($(CONFIGURATION),Release)
FLAGS += -O3 -DNDEBUG=1 -funsafe-math-optimizations
FLAGS += -O2 -DNDEBUG=1 -funsafe-math-optimizations
endif

%warnings%
Expand Down

0 comments on commit add35ea

Please sign in to comment.