<?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>RAM Space</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/39073/ram-space</link><description> 
I could not find an explanation for an observation given
below. 

 
1)When I declared bits like 
bit AM,fg_chat,pumpoff=0;pumpon=0,mode=0; 
bit PMP_flag = 1,buzzer=0,pumpon_flag=0; 
bit
xmitempty,flash1,response_received=0,response_delayed=0,sms_flag;</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: RAM Space</title><link>https://community.arm.com/thread/126551?ContentTypeID=1</link><pubDate>Sat, 18 Dec 2010 23:06:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:44633462-18e1-4be2-ad50-33331163f391</guid><dc:creator>Premkumar P</dc:creator><description>&lt;p&gt;&lt;p&gt;
Let me ask one more doubt&lt;br /&gt;
I use serial communication and T0 interrupt . I write the functions
as below&lt;/p&gt;

&lt;p&gt;
void Scc0InterruptHandler() interrupt SIO_VECTOR using 1 { }&lt;/p&gt;

&lt;p&gt;
int0Delay() interrupt TF0_VECTOR using 2 { }&lt;/p&gt;

&lt;p&gt;
But while debugging, it is noted that the first ISR is using
register bank 1 but the second ISR using register bank 0 even though
it has to use 2 as per the program. Kindly comment.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM Space</title><link>https://community.arm.com/thread/102362?ContentTypeID=1</link><pubDate>Sat, 18 Dec 2010 19:51:43 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d0f5c438-fb39-4bd4-b150-38590b5d1029</guid><dc:creator>Premkumar P</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;b&gt;Thank you all for the useful comments.&lt;/b&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM Space</title><link>https://community.arm.com/thread/136349?ContentTypeID=1</link><pubDate>Sat, 18 Dec 2010 10:21:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ff188299-a20c-4ee2-a29a-48a0eacc7f86</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Indeed - and the comment!&lt;/p&gt;

&lt;p&gt;
In fact, with some tools, when you mouse over a variable name, it
will show the definition line - including any comment.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM Space</title><link>https://community.arm.com/thread/126549?ContentTypeID=1</link><pubDate>Sat, 18 Dec 2010 06:15:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1bfaa15c-b9a2-4c47-8803-b49094f9c1a9</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
I prefer to repeat the type for each variable, with one
variable/line.&lt;/p&gt;

&lt;p&gt;
If I do &amp;quot;grep&amp;quot; for a variable, I want the printout to also show
the data type.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM Space</title><link>https://community.arm.com/thread/119119?ContentTypeID=1</link><pubDate>Sat, 18 Dec 2010 05:55:11 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6c1a3b49-a229-4abc-9876-a89acd8247cf</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;&amp;quot;comment every definition&amp;quot;&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Just for the sake of completeness, it &lt;i&gt;&lt;b&gt;is&lt;/b&gt;&lt;/i&gt; still
possible to do that; eg:&lt;/p&gt;

&lt;pre&gt;
bit
xmitempty,             // Explain the purpose of this variable
flash1,                // Explain the purpose of this variable
response_received=0,   // Explain the purpose of this variable
response_delayed =0,   // Explain the purpose of this variable
sms_flag;              // Explain the purpose of this variable
&lt;/pre&gt;

&lt;p&gt;
But that seems entirely pointless to me!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM Space</title><link>https://community.arm.com/thread/104450?ContentTypeID=1</link><pubDate>Sat, 18 Dec 2010 05:10:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a6168b9f-c86f-497d-a2d1-d3ca439fc681</guid><dc:creator>&amp;#178;erik malund</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;That&amp;#39;s one reason why it&amp;#39;s generally best not to have multiple
declarations in a single statement!&lt;/i&gt;&lt;br /&gt;
agreed, but the REAL reason should be&lt;br /&gt;
&lt;i&gt;I would also encourage you to make it a habit to comment every
definition&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
Erik&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM Space</title><link>https://community.arm.com/thread/90765?ContentTypeID=1</link><pubDate>Sat, 18 Dec 2010 04:01:37 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d88ad4f6-eda6-4a73-8616-be4fda4b747b</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
That&amp;#39;s one reason why it&amp;#39;s generally best &lt;b&gt;not&lt;/b&gt; to have
multiple declarations in a single statement!&lt;/p&gt;

&lt;p&gt;
There are also a number of other pitfalls; eg&lt;/p&gt;

&lt;pre&gt;
char* p1, p2; // does &lt;b&gt;not&lt;/b&gt; define two pointers!
&lt;/pre&gt;

&lt;p&gt;
See: &lt;a href="http://c-faq.com/decl/charstarws.html"&gt;c-faq.com/.../charstarws.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
I would also encourage you to make it a habit to comment every
definition; eg,&lt;/p&gt;

&lt;pre&gt;
bit xmitempty;             // Explain the purpose of this variable
bit flash1;                // Explain the purpose of this variable
bit response_received=0;   // Explain the purpose of this variable
bit response_delayed =0;   // Explain the purpose of this variable
bit sms_flag;              // Explain the purpose of this variable
&lt;/pre&gt;

&lt;p&gt;
So - lots of reasons &lt;i&gt;&lt;b&gt;not&lt;/b&gt;&lt;/i&gt; to have multiple
declarations/definitions in a single statement!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: RAM Space</title><link>https://community.arm.com/thread/58990?ContentTypeID=1</link><pubDate>Fri, 17 Dec 2010 22:29:01 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:965de6bd-68d9-4ae4-b558-c0c1115776f3</guid><dc:creator>Premkumar P</dc:creator><description>&lt;p&gt;&lt;p&gt;
Sorry I put a&amp;#39; ; &amp;#39;instead of&amp;#39; , &amp;#39;by mistake. Now seems to be
OK&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>