Sign in to follow this  
Nicholas Kong

How does one fix a structural hazard?

Recommended Posts


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...

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this