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]

Re: [PATCH][ARM] -m{cpu,tune,arch}=native


On 29/08/11 04:29, Michael Hope wrote:
> On Sat, Aug 27, 2011 at 3:19 AM, Andrew Stubbs<ams@codesourcery.com>  wrote:
>> Hi all,
>>
>> This patch adds support for -mcpu=native, -mtune=native, and -march=native
>> for ARM Linux hosts.
>>
>> So far, it only recognises Cortex-A8 and Cortex-A9, so I really need to find
>> out what the magic part numbers are for other cpus before this patch is
>> complete. I couldn't just find this information listed anywhere. I think
>> there are a lot of clues in the kernel code, but it's hard to mine and it
>> mostly only goes as far the architecture version, not the individual cpu.
>
> Could you send linaro-dev@ an email and ask them where this API is documented?

API? It reads /proc/cpuinfo, and that just spits out the magic numbers 
from the processor registers. Linaro-dev might know more magic numbers 
though.

> Hmm.  Should there be a -mfpu=native that picks between soft, VFP, and
> NEON based on the host?

Yes, we could do that also, based on the CPU feature flags. I'll add it 
to my list of things to do, but save it for another patch.

Andrew


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