/tune vs /arch in CVF6

/tune vs /arch in CVF6

What is the:
1. Diffrence
2. Interaction
between settings on /arch and /tune ?

e.g. does one supersede the other, or do they compliment each other or...?

Tim H

4 posts / 0 new
Last post
For more complete information about compiler optimizations, see our Optimization Notice.

They complement each other.

/arch says "generate instructions that assume the program is being run on a processor of at least this generation". This can cause use of instructions not supported on older processors.

/tune says "when making optimization decisions, choose the sequence that works best on this processor generation." You can use /tune without /arch, in which case the program will run everywhere but may run a bit slower on processor generations older than the one you specified.

The same applies to CVF on IA-32 systems.


Retired 12/31/2016

Thank stevo,
That is what I assumed.

So assuming the exe/dll is never distributed, then specifying /arch=host completely supersedes /tune=host.


Supersedes? I don't think I'd put it that way, but in practice it might work out like that.


Retired 12/31/2016

Leave a Comment

Please sign in to add a comment. Not a member? Join today