[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>
>> -Most- targets use -march.
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the cfe-dev