Thumb2 code size improvements
julian at codesourcery.com
Tue Sep 7 14:36:26 BST 2010
On Tue, 07 Sep 2010 21:06:10 +0800
Yao Qi <yao.qi at linaro.org> wrote:
> Julian Brown wrote:
> > So yeah, I think there is indeed a possible improvement here (and we
> > don't even need to break the EABI, I don't think). Unless I've
> > overlooked something, anyway...
> I revert back the first example, and add your comments in it.
> In order to teach gcc chooses low register when keeping stack
> alignment, which part of gcc shall I have a look? Is it about RA or
No, all the code to generate prologues & epilogues is target-specific,
and happens after register allocation. Take a look at e.g.
arm.c:arm_expand_prologue and friends. (Beware though, they can be
More information about the linaro-toolchain