comp.lang.ada
 help / color / mirror / Atom feed
From: Oliver Kleinke <oliver.kleinke@c-01a.de>
Subject: Re: Ram Usage
Date: Mon, 20 Jan 2014 02:36:43 +0100
Date: 2014-01-20T02:36:43+01:00	[thread overview]
Message-ID: <20140120023643.50ab8007@vostro> (raw)
In-Reply-To: c061fca0-4258-4b0f-84f8-20fd762b7f27@googlegroups.com

> Hi folks,
> 
>  I'd like to know if there are anyway to know how much of ram is been
> used by my code. 
> 
> I tried the avr-size, but it gives you just the static ram. The
> problem is how to evaluate the full memory consumption, including the
> non-static part. 
> 
> Thanks.

You can debug with JTAG or a simulator, use an "high-water mark" or dump
the SP (or SP minus &__heap_start, calculation may vary depending on
your linker flags/ram layout[1]). I think these 3 are the most common
methods.

--
[1] - http://www.nongnu.org/avr-libc/user-manual/malloc.html

  reply	other threads:[~2014-01-20  1:36 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-19 18:18 Ram Usage Vinicius Franchini
2014-01-20  1:36 ` Oliver Kleinke [this message]
2014-01-20  9:40 ` Niklas Holsti
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox