This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] ARM: don't overalign strings when optimizing for size


When we are optimizing for space, we don't want to waste it on padding 
that isn't mandated by the ABI.  This patch removes such over-alignment of 
strings, which normally has a small performance benefit, but costs us 
dearly in terms of padding.  On ARM this change is worth about 0.6% on 
CSiBE.  On Thumb it's more like 0.8%.

Tested on an arm-eabi cross and installed on mainline.

2006-11-16  Richard Earnshaw  <rearnsha@arm.com>

	* arm.h (CONSTANT_ALIGNMENT): Don't over-align strings when
	optimizing for size.


Attachment: patch
Description: patch


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]