comparison BSDmakefile @ 47:7d4c25c288bb

Use -O2 to make debugging slightly less annoying.
author Daniel O'Connor <darius@dons.net.au>
date Wed, 03 Apr 2013 23:30:14 +1030
parents 6466e8720e04
children ace431a0d0f5
comparison
equal deleted inserted replaced
46:5b7d21698a80 47:7d4c25c288bb
30 # Set CPU type 30 # Set CPU type
31 COMMONFLAGS= -mcpu=cortex-m3 31 COMMONFLAGS= -mcpu=cortex-m3
32 # Enable thumb code (since the Cortex M3 only does thumb) 32 # Enable thumb code (since the Cortex M3 only does thumb)
33 COMMONFLAGS+= -mthumb 33 COMMONFLAGS+= -mthumb
34 # Debugging & optimisation 34 # Debugging & optimisation
35 COMMONFLAGS+= -g -O3 35 COMMONFLAGS+= -g -O2
36 # Put functions & data in individual sections to allow the linker to optimise (breaks debugging apparently) 36 # Put functions & data in individual sections to allow the linker to optimise (breaks debugging apparently)
37 COMMONFLAGS+= -ffunction-sections -fdata-sections 37 COMMONFLAGS+= -ffunction-sections -fdata-sections
38 # We aren't using exceptions 38 # We aren't using exceptions
39 COMMONFLAGS+= -fno-exceptions 39 COMMONFLAGS+= -fno-exceptions
40 40