Yahoo Groups archive

AVR-Chat

Index last updated: 2026-04-28 22:41 UTC

Message

WinAVR / GCC question re Stack

2009-03-24 by David VanHorn

How can I assign a variable to a specific point in SRAM?

What I'm trying to do, is implement a guard against stack growing down
into the data.
Ideally, I'd allocate some variable to a point X bytes below the top
of SRAM, and above the top of allocated memory, and watch it for any
changes after init.

Or, are there better methods?

-- 

"The very powerful and the very stupid have one thing in common. Instead of
altering their views to fit the facts, they alter the facts to fit their
views... which can be very uncomfortable if you happen to be one of the
facts that needs altering." Doctor Who, Face of Evil

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.