   How does one fix a structural hazard?
How does one fix a structural hazard?
10 seconds on Google: http://en.wikipedia.org/wiki/Classic_RISC_pipeline#Structural_hazards With the amount of detail in your question, I don't think anyone can do better than that. Now for the more important part of my answer: How does this relate to game programming? You seem to be using this board as some general tool to enrich your learning about CS, but that's not what it is for, so please stop doing it.;Now for the more important part of my answer: How does this relate to game programming? You seem to be using this board as some general tool to enrich your learning about CS, but that's not what it is for, so please stop doing it.This is the "General Programming" forum, so the question isn't off-topic. It is however hopelessly vague. I'd much prefer it if more specific questions were asked...;I think it's still off-topic. As far as I can tell, structural hazard is a term in processor design, not programming.;It's kind of programming, if you're writing assembly on certain processors (PPC ones spring to mind) you will want to avoid structural hazards as they tend to cause pipeline stalls. Avoiding them is usually best left to the compiler though, the comments in this bit of code explain one way to avoid them. https://llvm.org/svn/llvm-project/llvm/tags/RELEASE_22/lib/Target/PowerPC/PPCHazardRecognizers.cpp;  Broadly speaking, you avoid structural hazards by intermixing memory, integer, and floating point code in inner loops, instead of having separate loops for each. But this is very much a micro-optimization.   