T
T
Tyoma Makeev2015-12-05 01:28:51
C++ / C#
Tyoma Makeev, 2015-12-05 01:28:51

What happens if you repeat two optimization parameters in GCC with different values?

What will happen if my package is built with parameters, for example "-O2 -O3"? Or, for example, "-march=armv8-a -march=x86-64"? Or "-mtune=generic -mtune=native"?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
jcmvbkbc, 2015-12-05
@murmuringvoices

For most options -- will be overwritten with the last value passed. This is particularly true for -march and -mtune on x86.
But in the general case, it can be anything, since gcc can convert one option to another according to its specs before invoking the actual compiler.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question