This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [ARM] Factor out the thumb2 -Os implementation.
- From: Richard Earnshaw <Richard dot Earnshaw at foss dot arm dot com>
- To: Marcus Shawcroft <marcus dot shawcroft at arm dot com>, "newlib at sourceware dot org" <newlib at sourceware dot org>
- Cc: Richard Earnshaw <Richard dot Earnshaw at arm dot com>
- Date: Mon, 23 Nov 2015 15:06:38 +0000
- Subject: Re: [ARM] Factor out the thumb2 -Os implementation.
- Authentication-results: sourceware.org; auth=none
- References: <564A0426 dot 5070402 at arm dot com> <564F449C dot 2040703 at arm dot com>
On 20/11/15 16:04, Marcus Shawcroft wrote:
> On 16/11/15 16:28, Marcus Shawcroft wrote:
>> This patch moves the inline ASM thumb2 -Os implementation out into its
>> own .S file.
>>
>> Tested by building newlib and comparing libc.a binaries before and
>> after for all permutations of:
>>
>> Architectures:
>> armv4 armv4t armv5 armv5t armv5te armv6 armv6j armv6k
>> armv6z armv6kz armv6t2 armv6-m armv6s-m armv7 armv7-a
>> armv7ve armv7-r armv7-m armv7e-m armv8-a iwmmxt iwmmxt2
>>
>> ISAs:
>> thumb arm
>>
>> Optimization Levels:
>> Os O2
>>
>> Excluding:
>> armv6s-m -mthumb
>> armv6-m -mthumb
>>
>> armv6zk -mthumb
>> armv6z -mthumb
>> armv6k -mthumb
>> armv6j -mthumb
>>
>> OK?
>> /Marcus
>>
>> * libc/machine/arm/strlen-stub.c: Move T2 -O2 implementation
>> to...
>> * libc/machine/arm/strlen-thumb2-Os.S: New file.
>> * libc/machine/arm/strlen.S: Include strlen-thumb2-Os.S.
>
>
> Hi, Here is a re-spin. This version provides a .arch directive for
> either armv6t2 or armv7 depending on the target architecture rather than
> assuming armv6t2 is always fine.
>
> OK?
>
OK.
R.