avr-chat
[Top][All Lists]
Advanced

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

Re: [avr-chat] measuring stack/heap usage


From: Daniel Otte
Subject: Re: [avr-chat] measuring stack/heap usage
Date: 15 Mar 2010 22:14:20 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.23) Gecko/20090817 Thunderbird/2.0.0.23 Mnenhy/0.7.6.666

Joerg Wunsch wrote:
> In that case, looking at the compiler-generated assembly code (as
> Julius suggested) is the best way.  The compiler leaves a comment in
> the assembly code indicating the depth of the stack frame.

This would only work on a subset of the algorithms I would like to measure, as
it is difficult to automatize this kind of analysis if data depended allocations
occur or recursive function calls are made (both happens in my bigint
implementation).
Isn't there a simple variable which indicates the top of the heap?

Best regards,
 Daniel

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

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