[cfe-dev] [llvm-dev] difference between --target, -mcpu, -march

Bruce Hoult via cfe-dev cfe-dev at lists.llvm.org
Sat Mar 19 03:54:25 PDT 2016


Would it be fair to say that an -march chooses an instruction set, while
-mcpu will affect scheduling things such as how many instructions can be
run in parallel and their latency etc?

I actually use -m32 or -mthumb more than anything else :-)


On Sat, Mar 19, 2016 at 3:38 AM, Eric Christopher via llvm-dev <
llvm-dev at lists.llvm.org> wrote:

> Yes and no. By target here I just mean the architecture being targeted and
> that most of them use the -march option rather than -mcpu. Which makes what
> you said a consequence of that. :)
>
> On Fri, Mar 18, 2016, 4:55 PM Rail Shafigulin <rail at esenciatech.com>
> wrote:
>
>> -Most- targets use -march.
>>>
>>> -eric
>>>
>>
>> Do you meat that in most cases -target is used along with -march instead
>> of -target and -mcpu?
>>
>> --
>> Rail Shafigulin
>> Software Engineer
>> Esencia Technologies
>>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20160319/a4f9b99e/attachment.html>


More information about the cfe-dev mailing list