Question on selecting asm-optimised sources (or not)
Steve Bennett
steveb at workware.net.au
Thu Sep 20 09:19:48 UTC 2012
On 20/09/2012, at 7:13 PM, Bernhard Reutner-Fischer wrote:
> On 20 September 2012 04:03:27 Steve Bennett <steveb at workware.net.au> wrote:
>> Hi All,
>>
>> It turns out that the asm-optimised implementations of memcpy/memmove
>> for microblaze in libc/string/microblaze/memcpy.S are big-endian only.
>>
>> When building little-endian I would like to select the generic C
>> implementation instead.
>>
>> Anybody familiar enough with the uClibc build system to tell me how
>> I can select the correct implementation?
>
> Ideally implement optimized LE versions. Otherwise make the optimized version depend on !(ARCH_MICROBLAZE && CONFIG_LITTLEENDIAN).
Yes, that would be ideal. My microblaze assembler isn't up to it, though :-(
Where do I add the check?
All the work is done in libc/string/Makefile.in to select the generic version
or the arch-specific version. Surely we don't want anything arch-specific in there.
So where?
Cheers,
Steve
--
Embedded Systems Specialists - http://workware.net.au/
WorkWare Systems Pty Ltd
W: www.workware.net.au P: +61 434 921 300
E: steveb at workware.net.au F: +61 7 3391 6002
More information about the uClibc
mailing list