Close

Status registers...

A project log for PDP - Processor Design Principles

Distilling my experience and wisdom about the architecture, organisation and design choices of my CPUs

yann-guidon-ygdesYann Guidon / YGDES 02/04/2018 at 00:580 Comments

Status registers...

Just like the "GOTO considered harmful", status registers have been considered "impure" by the RISC church.

I would say : do what you can to avoid them. They can create a lot of problems. But there are times when you can't avoid them and trying to be too smart will backfire.

To be listed :

As a rule of thumb : status flags start to hurt when the core gets pipelined or superscalar. They can keep performance from increasing and force enhanced cores to jump through OoO hoops. So if your core isn't meant to be as powerful as an application processor, yeah, go for it, but be very careful.

POWER managed to solve this but I'm not fluent with this architecture.

Discussions