Computer Science Fundamentals
Algorithms
Subjective
Feb 26, 2013
How would you calculate the cost of an instruction?
Detailed Explanation
• The cost of an instruction to be one plus the costs associated with the source and destination address modes. This cost corresponds to the length of the instruction.
• Address modes involving registers have cost zero, while those with a memory location or literal in them have cost one.
Discussion (0)
No comments yet. Be the first to share your thoughts!
Share Your Thoughts