⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 benchmarks.html

📁 ADI 公司blackfin系列的用户使用文挡。
💻 HTML
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html><head>  <title></title>  <link rel="stylesheet" media="screen" type="text/css" href="./style.css" />  <link rel="stylesheet" media="screen" type="text/css" href="./design.css" />  <link rel="stylesheet" media="print" type="text/css" href="./print.css" />  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /></head><body><a href=start.html>start</a></br><h2><a name="benchmarks" id="benchmarks">Benchmarks</a></h2><div class="level2"><p>Examination of the assembly code generated when calling the <em><strong>swap</strong></em> function shows that R1 stores the second parameter and R0 stores the first parameter; however, in this case the parameters are addresses of variables instead of values of variables.  The assembler code may look something like the following:</p><pre class="code">.global _swap; _swap: /***store addresses***/ P2 =R0 ; P1 =R1 ; /***store values from given addresses***/ R0 =[P2 ]; R1 =[P1 ]; /***write values to given addresses, swapping locations***/ [P2 ] =R1 ; [P1 ] =R0 ; RTS;</pre><p> First, this code stores the address saved in R0 to pointer register P2 and the address saved in R1 to pointer register P1.  The value at the address pointed to by P2 is then stored in R0 and the value at the address pointed to by P1 is stored in R1.  Finally, the address pointed to by P2 is written with the value in R1 and the address pointed to by P1 is written with the value in R0.  When this done the original values from the two memory locations have swapped positions.</p><p>There are of course many other assembler directives, assembly instructions, and methods of parameter passing that cannot be covered here.  For more information on the GNU assembler click  <a href="http://www.gnu.org/software/binutils/manual/gas-2.9.1/as.html" class="urlextern" title="http://www.gnu.org/software/binutils/manual/gas-2.9.1/as.html"  rel="nofollow">here</a>.  For information on Blackfin assembly instructions see the <a href="http://www.analog.com/processors/epManualsDisplay/0,2795,,00.html?SectionWeblawId=207&amp;ContentID=67993&amp;Language=English" class="urlextern" title="http://www.analog.com/processors/epManualsDisplay/0,2795,,00.html?SectionWeblawId=207&amp;ContentID=67993&amp;Language=English"  rel="nofollow">Blackfin Processor Instruction Set Reference</a>, available online from Analog Devices&rsquo; website.</p></div></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -