Commit 00205e49 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

use custom stack analyzer

parent 32f50fd6
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -128,9 +128,9 @@ endif
include src/arch/${arch}/Makefile.inc

stack: default
	@test -n "${OBJDUMP}"
	@test -n "${ARCH_CALL_COST}"
	@./avstack.pl ${OBJDUMP} ${ARCH_CALL_COST} ${OBJECTS}
	${QUIET}test -n "${OBJDUMP}"
	${QUIET}test -n "${ARCH_SHORTNAME}"
	${QUIET}./static-stack-analyze.pl ${OBJDUMP} ${ARCH_SHORTNAME} ${OBJECTS}

clean: arch_clean
	rm -f build/system.elf
+1 −2
Original line number Diff line number Diff line
@@ -21,8 +21,7 @@ NM = avr-nm
OBJCOPY = avr-objcopy
OBJDUMP = avr-objdump

# On each function call, the 2-Byte return address is pushed onto the stack
ARCH_CALL_COST = 2
ARCH_SHORTNAME = avr

ifeq (${aspectc}, 1)
	CXX = ag++ -r build/repo.acp -v 0 --c_compiler avr-g++ -p . --Xcompiler
+1 −2
Original line number Diff line number Diff line
@@ -21,8 +21,7 @@ NM = avr-nm
OBJCOPY = avr-objcopy
OBJDUMP = avr-objdump

# On each function call, the 2-Byte return address is pushed onto the stack
ARCH_CALL_COST = 2
ARCH_SHORTNAME = avr

ifeq (${aspectc}, 1)
	CXX = ag++ -r build/repo.acp -v 0 --c_compiler avr-g++ -p . --Xcompiler
+2 −1
Original line number Diff line number Diff line
@@ -12,7 +12,8 @@ CXX = avr-g++
NM = avr-nm
OBJCOPY = avr-objcopy
OBJDUMP = avr-objdump
ARCH_CALL_COST = 4

ARCH_SHORTNAME = avr

ifeq (${aspectc}, 1)
	CXX = ag++ -r build/repo.acp -v 0 --c_compiler avr-g++ -p . --Xcompiler
+1 −3
Original line number Diff line number Diff line
@@ -16,9 +16,7 @@ CXX = /opt/msp430/ti/gcc/bin/msp430-elf-g++
OBJCOPY = /opt/msp430/ti/gcc/bin/msp430-elf-objcopy
OBJDUMP = /opt/msp430/ti/gcc/bin/msp430-elf-objdump

# For each function call, the 4-Byte (20 bits at 2-Byte alignment) return
# address is pushed onto the stack.
ARCH_CALL_COST = 4
ARCH_SHORTNAME = msp430

CXX_TARGETS += src/arch/msp430fr5969lp/arch.cc

Loading