[U-Boot] [PATCH v3 6/6] SPL: Add README.omap3

Mike Frysinger vapier at gentoo.org
Tue Feb 14 19:43:27 CET 2012


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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120214/49599588/attachment.pgp>


More information about the U-Boot mailing list