How to set that compiler flag?
Posted
by mystify
on Stack Overflow
See other posts from Stack Overflow
or by mystify
Published on 2010-04-26T13:10:47Z
Indexed on
2010/04/26
13:13 UTC
Read the original article
Hit count: 322
Shark told me this:
This instruction is the start of a loop that is not aligned to a 16-byte address boundary. For optimal performance, you should align the start of a hot loop using a compiler directive. With gcc 3.3 or later, use the -falign-loops=16 compiler flag.
for (int i=0; i < 4; i++) { // line with the info
//...code
}
How would I set that flag, and does it really improve performance?
© Stack Overflow or respective owner