Hi! First I wonder, is qmake a compiler or does it just create makefiles that it uses when compiling the code with another compiler, say gcc or mingw? My second question is, does qmake optimize multiplication/division by one? That is, if I write
a = one * b;
a = one * b;
To copy to clipboard, switch view to plain text mode
or
a = b * one;
a = b * one;
To copy to clipboard, switch view to plain text mode
or
a = b / one;
a = b / one;
To copy to clipboard, switch view to plain text mode
, is this optimized to just
a = b;
a = b;
To copy to clipboard, switch view to plain text mode
? Here, "one" is either a define or a const that is set to one. Also, does it depend on whether a and b are float types, and on whether one is a float type?
Bookmarks