naw
there is no reason to do an asm version of
return a.x * b.x + a.y * b.y + a.z * b.z;
there isnt a asm coder alive that could code that better in asm then then the C++ compilier will do.
Vectors bouncing
May 11, 2002 06:07 PM
sorry, but you are wrong.
say your writting code for the ps2..and you want the compilier to be smart about how it builds your code..its better to just write it yourself. besides that some of the compiliers dont optimize classes efficiently in all cases, especially vector and matrix classes where you want must of your code to be inlined with as few instructions as possible and ordered in such a way that causes the least amount of pipeline stalls. our lead engine guy actaully went into the source of gcc and fixed some of these class issues for the ps2 compilier.
say your writting code for the ps2..and you want the compilier to be smart about how it builds your code..its better to just write it yourself. besides that some of the compiliers dont optimize classes efficiently in all cases, especially vector and matrix classes where you want must of your code to be inlined with as few instructions as possible and ordered in such a way that causes the least amount of pipeline stalls. our lead engine guy actaully went into the source of gcc and fixed some of these class issues for the ps2 compilier.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement