<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>How to force C51 to put a variable in a register</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/15712/how-to-force-c51-to-put-a-variable-in-a-register</link><description> Hi all, 
 
I want to use registers for a specific variable. 
 
How can I force C51 to put the variable in a register? I tried &amp;quot;register&amp;quot; keyword, but it did not worked. 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: How to force C51 to put a variable in a register</title><link>https://community.arm.com/thread/37740?ContentTypeID=1</link><pubDate>Sun, 29 Jul 2001 18:52:32 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8927b605-b2dc-4407-a825-aae75755b2a1</guid><dc:creator>Andrew Neil</dc:creator><description>&lt;p&gt;The &lt;b&gt;register&lt;/b&gt; keyword is only a &lt;i&gt;hint&lt;/i&gt; to the compiler - the compiler is free to ignore it (check K&amp;amp;R!)&lt;br /&gt;
C51 has its own specific uses for registers; in particular, for passing parmeters - check the manual.&lt;br /&gt;
You can use NOREGPARAMS to prevent C51  using registers for passing parameters.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>