0

Given some assembly code ,it is known that 90% of branches should be taken.

I have no knowledge regarding branch conditions.And decision about take or not take for each branch should be done only based on probability.

The branch`s offset can be positive or negative.

What is correct algorithm to do that?

YAKOVM
  • 9,805
  • 31
  • 116
  • 217

1 Answers1

0

I have found an algorithm, but I do not know if it is the right for your case

Here it is

Hope you find it useful!