<?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>Determing Image Size Post Compilation</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/40711/determing-image-size-post-compilation</link><description> 
Hello All, 

 
I am working on STM32F4 series &amp;amp; using Keiluvision4 as my
IDE. 
In the startup file of my project i am reserving 4bytes space just
after the vector table in the flash that would hold the Image size of
that project. 

 
I am reserving</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Determing Image Size Post Compilation</title><link>https://community.arm.com/thread/82112?ContentTypeID=1</link><pubDate>Mon, 08 Sep 2014 02:27:02 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:01452df4-8d72-4548-849f-d7f1afd14147</guid><dc:creator>Amit Mahapatra</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thank u Westonsupermare Pier IMPORT &amp;amp; DCD worked, now i am
able to obtain the Image size post compilation&lt;/p&gt;

&lt;p&gt;
Thanks once again :-)&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Determing Image Size Post Compilation</title><link>https://community.arm.com/thread/63104?ContentTypeID=1</link><pubDate>Thu, 04 Sep 2014 12:06:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3b9acf34-4e2f-4f96-80ba-a86c931e4bd5</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Seems like an odd approach, there are unused vector entries that
would suffice without carving out space in the middle of a code
region.&lt;/p&gt;

&lt;p&gt;
Well you could post-process the AXF/ELF file, or use some AWK
script against the .MAP file, it&amp;#39;s not like you have to do such
things manually.&lt;/p&gt;

&lt;p&gt;
On an ARM9 platform I used something like this to force the Linker
to fix up it&amp;#39;s own internal sizes into a know location.&lt;/p&gt;

&lt;pre&gt;
  IMPORT  ||Image&amp;#36;&amp;#36;ER_IROM1&amp;#36;&amp;#36;RO&amp;#36;&amp;#36;Length||
  IMPORT  ||Image&amp;#36;&amp;#36;RW_IRAM1&amp;#36;&amp;#36;RW&amp;#36;&amp;#36;Length||
...
  DCD ||Image&amp;#36;&amp;#36;ER_IROM1&amp;#36;&amp;#36;RO&amp;#36;&amp;#36;Length||+\ 
      ||Image&amp;#36;&amp;#36;RW_IRAM1&amp;#36;&amp;#36;RW&amp;#36;&amp;#36;Length||
&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Determing Image Size Post Compilation</title><link>https://community.arm.com/thread/68868?ContentTypeID=1</link><pubDate>Thu, 04 Sep 2014 12:00:21 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:709f97ed-1c6b-4ee1-a480-d888399ea3cd</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/armlink/armlink_pge1362065951979.htm"&gt;
&lt;a href="http://www.keil.com/support/man/docs/armlink/armlink_pge1362065951979.htm"&gt;www.keil.com/.../armlink_pge1362065951979.htm&lt;/a&gt;&lt;/a&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>