PDA

View Full Version : Compiling QT5 for my machine



cszawisza
12th May 2014, 07:23
I have searched for a while and never found an answer.
Does compiling QT5 for my i5 processor (with some additional flags like -march and -msse4) will produce me a noticeably faster/smaller code?

anda_skoa
12th May 2014, 08:21
"noticeable" always depends on the workload, what you programs are actually doing.

There are code paths in Qt that can make use of certain hardware features if available and enabled, but how the impact the overall program performance depends on how often the program in question is executing those paths.

You'll have to compare for yourself.

Cheers,
_

cszawisza
4th June 2014, 07:29
Hi!
I managed to compile Qt5 with -march=nativ -O3 compiler flags if somebody is curious about performance differences, please write some "tests" and put it in this thread