On Tuesday 14 February 2012 12:29:41 Tom Rini wrote:
> +Estimating stack usage
> +----------------------

isn't this usable for any target and not just omap3 ?

> +With gcc 4.6 (and later) and the use of GNU cflow it is possible to
> estimate stack usage at various points in run sequence of SPL.  The
> -fstack-usage option to gcc will produce '.su' files (such as
> arch/arm/cpu/armv7/syslib.su) that will give stack usage information and
> cflow can construct program flow. +
> +Must have gcc 4.6 or later, which supports -fstack-usage

tools/checkpatch.pl is also pretty useful and doesn't require any compile 
version

> +$ for F in `cd spl; find  -name *.su`; do \
> +     echo $F | sed -e 's/.su$/.c/'; done > used-spl.list

find spl -name '*.su' | sed -e 's:^spl/::' -e 's:[.]su$:.c:' > used-spl.list
-mike

Attachment: signature.asc
Description: This is a digitally signed message part.

_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to