Rail Shafigulin via llvm-dev
2016-Mar-18 23:55 UTC
[llvm-dev] difference between --target, -mcpu, -march
> > -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 -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160318/9efe3d1b/attachment.html>
Eric Christopher via llvm-dev
2016-Mar-19 00:38 UTC
[llvm-dev] difference between --target, -mcpu, -march
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 >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20160319/70602601/attachment.html>
Bruce Hoult via llvm-dev
2016-Mar-19 10:54 UTC
[llvm-dev] difference between --target, -mcpu, -march
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/llvm-dev/attachments/20160319/a4f9b99e/attachment.html>