Archived

This topic is now archived and is closed to further replies.

Expensive Operations

This topic is 6611 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

While it is possible to "count" the number of cycles a piece of code uses, it is both diffcult and inaccurate. Pipelining, cache and processor differences may make you measurements on one PC wildly inaccurate on another.

My best suggestion is to use a good profiler, and run it on as many platforms as you can get your hands on.

If you really want to get dirty, Intel has a tool the gets into the nitty gritty (VTune) + gives away processor docs for free (2-3 CDs full of it). That should keep you occupied for a while, or at least convince you to take another approach

/Niels

Share this post


Link to post
Share on other sites
How do you determine how expensive an operation is? Can someone list their expense (including integer and floating point). Also, what chips have dedicated floating point processors onboard? Does this change you answer, above? thanks

Share this post


Link to post
Share on other sites