<?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>Reading memory address</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/37003/reading-memory-address</link><description> 
I have following code to read the variable address by using huge
pointer. 

 
unsigned int Regular_Shutdown;

unsigned int huge *const Array[1] = {(unsigned char huge)&amp;amp;Regular_Shutdown};

unsigned int huge* ReadAdd;
Read_Address
{
 ReadAdd = Array[1</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Reading memory address</title><link>https://community.arm.com/thread/98441?ContentTypeID=1</link><pubDate>Fri, 15 Sep 2006 07:34:25 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e1234261-f14a-4b8e-b945-6bed4d052caa</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Never re-type stuff manually to post it; always use
copy-and-paste.&lt;/p&gt;

&lt;p&gt;
How do we know that the rest of your post doesn&amp;#39;t also have typos
- or that you&amp;#39;ve actually typed your post correctly when a typo
exists in the real code!&lt;/p&gt;

&lt;p&gt;
Re-post the real code, using copy-and-paste.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading memory address</title><link>https://community.arm.com/thread/74365?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2006 22:56:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1809dee0-b12c-4dee-af29-fa9dd2a9b7a9</guid><dc:creator>Milind Shitole</dc:creator><description>&lt;p&gt;&lt;p&gt;
It is writing error.Sorry&lt;br /&gt;
In actual code it is&lt;/p&gt;

&lt;pre&gt;
 ReadAdd = Array[0];
&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Reading memory address</title><link>https://community.arm.com/thread/46808?ContentTypeID=1</link><pubDate>Thu, 14 Sep 2006 10:11:00 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5e46eb8d-1ef6-42ea-b77e-92b7dd5757f1</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;pre&gt;
unsigned int huge *const Array[1] ...
&lt;/pre&gt;

&lt;p&gt;
This defines an array having &lt;b&gt;one&lt;/b&gt; element.&lt;/p&gt;

&lt;pre&gt;
ReadAdd = Array[1];
&lt;/pre&gt;

&lt;p&gt;
This reads the &lt;i&gt;&lt;b&gt;second&lt;/b&gt;&lt;/i&gt; element of the array -
remember that &amp;#39;C&amp;#39; array indexes are &lt;b&gt;zero&lt;/b&gt; based; ie, the first
element has index &lt;b&gt;zero&lt;/b&gt;!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>