Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
[Code] Adding LTO to dsp lib's CFLAGS
Browse files Browse the repository at this point in the history
  • Loading branch information
fpoussin committed Oct 24, 2014
1 parent 0f1c2f6 commit 9d313df
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion code/app/dsp_lib/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ RM := rm -f
C_OBJ := $(DSPSRC:%=%.o)
ASM_OBJ := $(DSPASM:%=%.o)

CFLAGS := -mcpu=cortex-m4 -Os -ggdb -fomit-frame-pointer -falign-functions=16 -Iinc -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -ffunction-sections -fdata-sections -fno-common -Wall -Wextra -Wstrict-prototypes -DCORTEX_USE_FPU=TRUE -DARM_MATH_CM4 -D__FPU_PRESENT -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB
CFLAGS := -mcpu=cortex-m4 -Os -ggdb -fomit-frame-pointer -falign-functions=16 -Iinc -mfloat-abi=hard -mfpu=fpv4-sp-d16 -fsingle-precision-constant -ffunction-sections -fdata-sections -fno-common -Wall -Wextra -Wstrict-prototypes -DCORTEX_USE_FPU=TRUE -DARM_MATH_CM4 -D__FPU_PRESENT -DTHUMB_PRESENT -mno-thumb-interwork -DTHUMB_NO_INTERWORKING -mthumb -DTHUMB -flto

default: all
all: libmath_cm4f.a
Expand Down
Binary file modified code/app/dsp_lib/libmath_cm4f.a
Binary file not shown.
2 changes: 1 addition & 1 deletion code/bootloader/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ int main(void) {
* Given the 25<->55k pullup, 100nf cap, 0.8v threshold voltage
* it takes 0.7ms<->1.5ms to reach the High level voltage */
uint32_t i = 0;
while (i++ < 100000) // 1.4ms * 3
while (i++ < 10000) // 1.4ms * 3
{
asm ("nop");
}
Expand Down

0 comments on commit 9d313df

Please sign in to comment.