Salut Sebastien,

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

"Sebastien Chretien" <s.chret...@enko-creatio.fr> 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
address.

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. ;-)

_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to