[cfe-dev] Optimized subarch library support
simon at atanasyan.com
Sat Dec 7 03:56:11 PST 2013
The Clang driver supports MIPS target multilib selection for a couple
of toolchains including Codesourcery. All paths (relative to the
toolchain root) are hard coded into the driver and it selects the best
match using provided command line arguments.
This test case demonstrates running the Clang driver with Codesourcery
As to the configuration file - you can take a look at this discussion:
In general I like the idea to implement more general solution covers
not only MIPS target.
On Sat, Dec 7, 2013 at 5:35 AM, Jonathan Roelofs
<jonathan at codesourcery.com> wrote:
> I'd like to add support to Clang for picking subarch-optimized versions of
> libraries. One place I see this being particularly useful is on x86 where
> there are a handful of different vector units available but libraries need
> to be built to the lowest common denominator and therefore can't take
> advantage of the increased performance of architectures supporting them
> (runtime cpu dispatch aside). Embedded arm targets could benefit from this
> as well.
More information about the cfe-dev