[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Data section and stack

From: Joerg Wunsch
Subject: Re: [avr-gcc-list] Data section and stack
Date: Wed, 12 Jan 2011 20:08:53 +0100 (MET)

Salut Sebastien,

please, better subscribe to the list in order to not miss replies.

"Sebastien Chretien" <address@hidden> wrote:

> Is there a way to know if stack pointer is entering in data section ?

You can read out the stack pointer, and compare it against the symbol
_end which is provided by the linker and marks the last allocated SRAM

While developing, you might monitor the stack usage by initially
filling up all SRAM with a known pattern, and then observe the amount
of stack that overwrites this pattern, e.g. using JTAG debugging.

cheers, J"org               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/                        NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)

reply via email to

[Prev in Thread] Current Thread [Next in Thread]