<?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>including C source code in assembly code.</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/21593/including-c-source-code-in-assembly-code</link><description> 
Hi, Is there any method to include embedded c code in the assembly
source code for 8051. 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: including C source code in assembly code.</title><link>https://community.arm.com/thread/75035?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2007 13:51:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:6415ecad-d2bc-4492-9188-17cf2f77984a</guid><dc:creator>Beda Prakash Sahoo</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thank u very much.&lt;br /&gt;
Regards&lt;br /&gt;
Bedaprakash&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: including C source code in assembly code.</title><link>https://community.arm.com/thread/50662?ContentTypeID=1</link><pubDate>Tue, 24 Apr 2007 13:47:13 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cc0f5fcc-a669-419a-9a27-5337ca25f00e</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
&lt;b&gt;No.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;
However, you can &lt;i&gt;call&lt;/i&gt; &amp;#39;C&amp;#39; source code from assembler.&lt;br /&gt;
&lt;a href="http://www.keil.com/support/man/docs/c51/c51_ap_ctoasm.htm"&gt;http://www.keil.com/support/man/docs/c51/c51_ap_ctoasm.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
But it&amp;#39;s usually easier to do it the other way around; ie, call
assembler from &amp;#39;C&amp;#39;.&lt;/p&gt;

&lt;p&gt;
Remember that &amp;#39;C&amp;#39; requires a certain amount of startup and runtime
support code...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>