sysperfana/perfinvestigator/com.nokia.carbide.cpp.pi.doc.user/html/reference/methods/pgm_counter.htm
author Matti Laitinen <matti.t.laitinen@nokia.com>
Thu, 11 Feb 2010 15:32:31 +0200
changeset 2 b9ab3b238396
child 5 844b047e260d
permissions -rw-r--r--
Initial version of Performance Investigator under EPL

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<title>Program Counter Value</title>
    <link href="../../../book.css" rel="stylesheet" type="text/css">
</head>

<body>
<h3>Program Counter Value</h3>
<p>Program counter is a special register in sequential processors following the principles of Von Neumann architecture. Its purpose is to store the address of the currently executing instruction. In performance measurements, the value of the program counter can be inspected in order to resolve the location of the current execution. On the other hand, program counter-relative values stored to the stack can be used to retrieve return values of branch instructions and interrupts. In ARM architecture, program counter is the register R15 but it is usually referred to as the PC. It is an unbanked register thus its value refers to the same physical register in each of the processor modes.<br>
</p>
<div id="footer">Copyright &copy; 2009 Nokia Corporation and/or its subsidiary(-ies). All rights reserved. <br>License: <a href="http://www.eclipse.org/legal/epl-v10.html">http://www.eclipse.org/legal/epl-v10.html</a></div>
</body>
</html>