This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Multiple versions of routines tuned for different devices
- From: David Gilbert <david dot gilbert at linaro dot org>
- To: newlib at sourceware dot org
- Cc: Greta Yorsh <Greta dot Yorsh at arm dot com>
- Date: Fri, 11 Nov 2011 18:55:19 +0000
- Subject: Multiple versions of routines tuned for different devices
Hi,
What's the right way to include multiple versions of string/memory
routines, where the appropriate
choice can't be determined from compiler defines?
Greta's memcpy for A15 ARMs is good, however I have a routine that
is faster on the older/current
A9 cores; I don't believe there is a way to get gcc to tell the code
what -mtune is passed to it.
We could just pass an extra -D in somewhere.
Thoughts?
Dave