<?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>Misc debug / link questions</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/23992/misc-debug-link-questions</link><description> 
Hi all ! 

 
1) can I compile a fixed breakpoint into code with a simple &amp;quot;C&amp;quot;
statement in &amp;quot;asm db xxx&amp;quot; style, like it was in the x86 days? 

 
2) what happens between end of startup file and beginning of
main(). I went through the code and found some</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Misc debug / link questions</title><link>https://community.arm.com/thread/77316?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2009 03:15:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:758789a7-bd7e-4e5f-b130-15d02b7f9946</guid><dc:creator>Uli Behrenbeck</dc:creator><description>&lt;p&gt;&lt;p&gt;
thanx John,&lt;/p&gt;

&lt;p&gt;
sorry for not having searched properly.&lt;br /&gt;
U.B.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Misc debug / link questions</title><link>https://community.arm.com/thread/55747?ContentTypeID=1</link><pubDate>Tue, 31 Mar 2009 02:11:41 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:88a7cd46-ea74-4e1c-b052-706d81f478ff</guid><dc:creator>John Linq</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;i&gt;-&amp;gt; 2) what happens between end of startup file and beginning
of main().&lt;/i&gt;&lt;/p&gt;

&lt;p&gt;
&lt;a href="http://www.keil.com/support/man/docs/armlib/armlib_cihfddfg.htm"&gt;http://www.keil.com/support/man/docs/armlib/armlib_cihfddfg.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
The entry point of a program is at __main in the C library where
library code does the following:&lt;/p&gt;

&lt;p&gt;
1. Copies non root (RO and RW) execution regions from their load
addresses to their execution addresses. Also, if any data sections
are compressed, they are decompressed from the load address to the
execution address. See the Linker Reference Guide for more
information.&lt;br /&gt;
2. Zeroes ZI regions.&lt;br /&gt;
3. Branches to __rt_entry.&lt;/p&gt;

&lt;p&gt;
The library function __rt_entry() runs the program as follows:&lt;/p&gt;

&lt;p&gt;
1. Calls __rt_stackheap_init() to set up the stack and heap.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>