From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!news.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Ram Usage Date: Mon, 20 Jan 2014 11:40:15 +0200 Organization: Tidorum Ltd Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net 0ELX8M+RSY6C+HHlKuCP+wPuVMAfAudB1c3bewOcJ/UBQbx4F2 Cancel-Lock: sha1:xkUSqt7heo0Li+FhqfqJHI2hRzU= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:18236 Date: 2014-01-20T11:40:15+02:00 List-Id: On 14-01-19 20:18 , Vinicius Franchini wrote: > 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. For stack consumption you can try a static analyzer such as my Bound-T (www.bound-t.com). This analyzer does not (yet) address the GNAT secondary stack, but, if I remember correctly, there is no secondary stack in GNAT for AVR. I have no suggestions for heap memory usage. -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .