core/com.nokia.carbide.cpp.doc.user/html/concepts/registers.htm
author fturovic <frank.turovich@nokia.com>
Wed, 15 Sep 2010 09:40:16 -0500
changeset 2009 b622387629d6
parent 1934 4f0cd256d26c
child 2087 617a89f9dffc
permissions -rw-r--r--
changed TRK to CODA in docs except where it related to pre-3.0 versions
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1791
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
     1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
     2
<html>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
     3
<head>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
     4
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
     5
<meta http-equiv="Content-Style-Type" content="text/css" />
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
     6
<meta name="LASTUPDATED" content="06/17/05 11:09:43" />
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
     7
<title>Registers</title>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
     8
<link rel="StyleSheet" href="../../book.css" type="text/css"/>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
     9
</head>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    10
<body >
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    11
<h2>Registers</h2>
1817
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    12
<p>Use the <a href="../reference/view_registers.htm">Registers</a> view to view the general and specific registers  central processing unit (CPU) of the host computer. The exact listing of these registers depends on the host CPU and current build target. </p>
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    13
<ul>
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    14
    <li><a href="#general">General registers</a></li>
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    15
    <li><a href="#arm">ARM registers</a></li>
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    16
</ul>
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    17
<h2><a name="general"></a>General registers</h2>
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    18
<p>Registers are the register contents of the central processing unit (CPU) of the host computer or the targeted device. When debugging projects using the emulator, only the host computer x86 registers are visible in the <a href="../reference/view_registers.htm">Registers</a> view. When debugging projects on a device, only the target device registers are visible. </p>
2009
b622387629d6 changed TRK to CODA in docs except where it related to pre-3.0 versions
fturovic <frank.turovich@nokia.com>
parents: 1934
diff changeset
    19
<p>In most cases, the contents of all the registers can be modified. However,  when debugging applications on a target device with Application CODA, you cannot change the LR and SP registers.</p>
1791
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    20
<p align="center"><img src="images/view_registers.png" width="463" height="260"></p>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    21
<p class="figure">Figure 1. Registers view with possible register types</p>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    22
<p>The types of registers can include:</p>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    23
<ul>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    24
  <li><b>general</b> &#8212; the register contents of the central processing unit (CPU) of the host computer</li>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    25
  <li><b>FPU</b> &#8212; register contents of the floating-point unit (FPU) of the host computer</li>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    26
  <li><b>MMX</b> &mdash; 64-bit MultiMedia eXtension (MMX) registers</li>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    27
  <li><b>SSE</b> &mdash; 128-bit Streaming SIMD Extension registers</li>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    28
  <li><b>host-specific</b>&#8212;additional register contents for registers specific to the host (for example ARM registers)</li>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    29
</ul>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    30
<p class="note"><b>NOTE</b> When opening the Registers view, the list of available registers will vary depending upon the target devices being debugged. </p>
1817
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    31
<h2 class="note"><a name="arm"></a>ARM registers</h2>
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    32
<p>The ARM microprocessor has 16 general-purpose registers. THUMB has eight general-purpose registers, R0-R7, and access to the high registers, R8-R15. Note that registers R0 through R3 hold the first four words of incoming arguments. The microprocessor constructs remaining arguments in the calling function's argument build area, which does not provide space into which R0 through R3 can be spilled.</p>
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    33
<p>Three registers are best left for special uses. These are:</p>
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    34
<ul>
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    35
    <li>R13 for stack operations</li>
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    36
    <li>R14 is the link register (it is used for storing return addresses in the construction of sub routines)</li>
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    37
    <li>R15 is the program counter (PC)</li>
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    38
</ul>
2009
b622387629d6 changed TRK to CODA in docs except where it related to pre-3.0 versions
fturovic <frank.turovich@nokia.com>
parents: 1934
diff changeset
    39
<p>In most cases, the contents of all the registers can be modified. However,  when debugging applications on a target device with Application CODA, you cannot change the LR, SP, and CPSR registers.</p>
1817
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    40
<p align="center"><img src="images/ARM_registers.PNG" alt="" width="648" height="276" /></p>
4eae2726ff31 consolidated register pages
fturovic <frank.turovich@nokia.com>
parents: 1791
diff changeset
    41
<p align="left" class="figure">Figure 2 - ARM Registers </p>
1791
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    42
<h5>Other  references <b></b></h5>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    43
    <ul>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    44
  <li><a href="../reference/view_registers.htm">Registers</a> view</li>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    45
  <li><a href="../tasks/registers/mem_reg_open_wnd.htm">Opening a Registers View</a></li>
1934
4f0cd256d26c BUG 11531 - fixed reported issues from Rooney and Stephen for SDK section
fturovic <frank.turovich@nokia.com>
parents: 1817
diff changeset
    46
  <li><a href="../tasks/registers/mem_reg_changing.htm">Changing Register Values</a></li>
1791
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    47
</ul>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    48
<div id="footer">Copyright &copy; 2010 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>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    49
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    50
</body>
727385d8e2b3 added new customize carbide section and some relinking done for deleted duplicate page
fturovic <frank.turovich@nokia.com>
parents: 1207
diff changeset
    51
</html>