mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
Add options to generate assembly listings for all of the compiled
files. This is a possible starting point for a tool to analyse the call graph and stack usage of APM. It's also interesting by itself.
This commit is contained in:
parent
7bb800aafc
commit
f79d4caeff
@ -205,10 +205,11 @@ DEPFLAGS = -MD -MT $@
|
||||
CXXOPTS = -mcall-prologues -ffunction-sections -fdata-sections -fno-exceptions
|
||||
COPTS = -mcall-prologues -ffunction-sections -fdata-sections
|
||||
ASOPTS = -assembler-with-cpp
|
||||
LISTOPTS = -adhlns=$(@:.o=.lst)
|
||||
|
||||
CXXFLAGS = -g -mmcu=$(MCU) $(DEFINES) $(OPTFLAGS) $(DEPFLAGS) $(CXXOPTS)
|
||||
CFLAGS = -g -mmcu=$(MCU) $(DEFINES) $(OPTFLAGS) $(DEPFLAGS) $(COPTS)
|
||||
ASFLAGS = -g -mmcu=$(MCU) $(DEFINES) $(DEPFLAGS) $(ASOPTS)
|
||||
CXXFLAGS = -g -mmcu=$(MCU) $(DEFINES) -Wa,$(LISTOPTS) $(OPTFLAGS) $(DEPFLAGS) $(CXXOPTS)
|
||||
CFLAGS = -g -mmcu=$(MCU) $(DEFINES) -Wa,$(LISTOPTS) $(OPTFLAGS) $(DEPFLAGS) $(COPTS)
|
||||
ASFLAGS = -g -mmcu=$(MCU) $(DEFINES) $(LISTOPTS) $(DEPFLAGS) $(ASOPTS)
|
||||
LDFLAGS = -g -mmcu=$(MCU) $(OPTFLAGS) -Wl,--gc-sections -Wl,-Map -Wl,$(SKETCHMAP)
|
||||
|
||||
LIBS = -lm
|
||||
|
Loading…
Reference in New Issue
Block a user