AnsweredAssumed Answered

TS201 -default-branch-np switch

Question asked by Joel.K on Oct 23, 2014
Latest reply on Oct 28, 2014 by CraigG

What does this switch actually do?


The C compiler manual states, "The -default-branch-{np|p} switch instructs the assembler and linker to set the branch behavior to be predictable or non-predictable. The default is the predicted condition."


I understand the BTB, and I understand branch prediction (I use it in my hand-assembled code). But I cannot understand what this compiler switch does. I have compiled code both with -default-branch-np and with -default-branch-p, and I see no difference in the generated assembly code.