<?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>how to emit arbitary string to asm output in C code?</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/41473/how-to-emit-arbitary-string-to-asm-output-in-c-code</link><description> 
I tried __asm directive, but it does check the strings for valid
instructions. 
 </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: how to emit arbitary string to asm output in C code?</title><link>https://community.arm.com/thread/129329?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 11:40:06 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:7d2bbb68-fc2f-4871-b795-cfc8263e93f1</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Presumably this loses the naming you want&lt;/p&gt;

&lt;pre&gt;
   foo:

investigation_ procedures();

   bar:
&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to emit arbitary string to asm output in C code?</title><link>https://community.arm.com/thread/120972?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 00:53:18 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c2c385b1-2870-480f-bb4d-d94629aa6fb9</guid><dc:creator>Fox Mulder</dc:creator><description>&lt;p&gt;&lt;p&gt;
OK. Is there any regular method to do this?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to emit arbitary string to asm output in C code?</title><link>https://community.arm.com/thread/109044?ContentTypeID=1</link><pubDate>Tue, 24 Jan 2017 00:37:53 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e1eb0912-5f1f-4127-9d95-4bf261dfbcc6</guid><dc:creator>edPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
The ARM compiler is basically a mini-assembler. It wants to
understand the assembler instructions because it will merge the
assembler instructions into the parse tree and perform optimizations
before generating the final code.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to emit arbitary string to asm output in C code?</title><link>https://community.arm.com/thread/83505?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2017 18:08:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:a3d9a6d0-4c66-4f63-ae02-9b5a8c1c9406</guid><dc:creator>Fox Mulder</dc:creator><description>&lt;p&gt;&lt;p&gt;
Hi, Scully, I am investigating the_x_file.s output.&lt;br /&gt;
So I need some marks, the processor is &amp;quot;CORTEX_M3&amp;quot;.&lt;/p&gt;

&lt;p&gt;
pseudo C code:&lt;/p&gt;

&lt;pre&gt;
__asm (&amp;quot;the_x_file_begins:&amp;quot;);

investigation_precedures();

__asm (&amp;quot;the_x_file_closes:&amp;quot;);

&lt;/pre&gt;

&lt;p&gt;
Expected ASM code:&lt;/p&gt;

&lt;pre&gt;
the_x_file_begins:

BL investigation_precedures

the_x_file_closes:

&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: how to emit arbitary string to asm output in C code?</title><link>https://community.arm.com/thread/65284?ContentTypeID=1</link><pubDate>Mon, 23 Jan 2017 11:47:07 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e67cd003-9544-4402-a767-be19bf67b547</guid><dc:creator>Westonsupermare Pier</dc:creator><description>&lt;p&gt;&lt;p&gt;
Damn it Mulder you&amp;#39;re making no sense with your incoherent
rambling..&lt;/p&gt;

&lt;p&gt;
What exactly are you trying to do, something like
&lt;b&gt;puts(&amp;quot;Krycek&amp;quot;);&lt;/b&gt; ??&lt;/p&gt;

&lt;p&gt;
The parameter is a pointer, passed in R0&lt;/p&gt;

&lt;p&gt;
Hard to know a) what it is you need, b) what you have tried. The
latter might shed light on what part of your logic is flawed.&lt;/p&gt;

&lt;p&gt;
What processor?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>