Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Branch Prediction - Compiler vs Hardware

Status
Not open for further replies.

shaiko

Advanced Member level 5
Joined
Aug 20, 2011
Messages
2,644
Helped
303
Reputation
608
Reaction score
297
Trophy points
1,363
Activity points
18,302
Some processor architectures implement branch prediction as a hardware circuit implemented in the device itself - while other rely on the complier to do this.

My question - why not always rely on the compiler?
It saves silicon, saves power and makes the processor less complicated and less expensive.
Sure, it comes at the price of higher compiler complexity - but if the performance is the same...why make the hardware complex when software can do it instead?
 

Which techniques do you consider when you say a compiler can perform branch prediction?
 
  • Like
Reactions: shaiko

    shaiko

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top