From: Mike Frysinger Date: Tue, 14 Feb 2012 13:43:27 -0500 Subject: [U-Boot] [PATCH v3 6/6] SPL: Add README.omap3 In-Reply-To: <1329240581-7616-7-git-send-email-trini@ti.com> References: <1329174126-21460-1-git-send-email-trini@ti.com> <1329240581-7616-7-git-send-email-trini@ti.com> Message-ID: <201202141343.28637.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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: