<?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>Keep Preprocessor Output AND Do Compile</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/43231/keep-preprocessor-output-and-do-compile</link><description> 
I can&amp;#39;t see an option on the ARM compiler to keep the preprocessor
output and do the compile. 

 
I can see: 

 
 -E: Just do the preprocessing; 

 
 -C: as above, but keep comments; 

 
 -P: Just do the preprocessing, without #line markers. 

 
But</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Keep Preprocessor Output AND Do Compile</title><link>https://community.arm.com/thread/117843?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2015 01:32:33 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d3f13019-bc9f-47f0-90f3-cfd6390cb13f</guid><dc:creator>Harib Suntar</dc:creator><description>&lt;p&gt;&lt;p&gt;
Ahhh ... you posted the same time as me.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keep Preprocessor Output AND Do Compile</title><link>https://community.arm.com/thread/108424?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2015 01:31:26 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:82e8ac09-dfc0-4256-81a1-18e71e48dc20</guid><dc:creator>Harib Suntar</dc:creator><description>&lt;p&gt;&lt;p&gt;
I&amp;#39;m not setting command line options. Just using the IDE check
boxes.&lt;/p&gt;

&lt;p&gt;
Specifically:&lt;/p&gt;

&lt;p&gt;
Options for Target-&amp;gt;Listing-&amp;gt;C Preprocessor Listing&lt;/p&gt;

&lt;p&gt;
It then creates a .i file and a .o file&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keep Preprocessor Output AND Do Compile</title><link>https://community.arm.com/thread/108421?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2015 01:31:15 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:08371957-c19f-4df3-94dd-87159c2693da</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
Aha! There is a &amp;#39;C Preprocessor Listing&amp;#39; option on the &amp;#39;Listings&amp;#39;
tab of the &lt;b&gt;Project&lt;/b&gt; options.&lt;/p&gt;

&lt;p&gt;
Checking that option does as you say - &lt;i&gt;for the whole
project&lt;/i&gt;.&lt;/p&gt;

&lt;p&gt;
I was just looking at the options for a specific file, and there
is no GUI setting there - hence manually adding the &lt;b&gt;-C&lt;/b&gt;
command-line option.&lt;/p&gt;

&lt;p&gt;
But the project-wide option will do just fine - many thanks!&lt;/p&gt;

&lt;p&gt;
&lt;b&gt;&lt;br /&gt;
:-)&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keep Preprocessor Output AND Do Compile</title><link>https://community.arm.com/thread/93540?ContentTypeID=1</link><pubDate>Fri, 04 Sep 2015 01:22:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8a13288f-d3b7-4e19-8f27-0b90e416375b</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
It&amp;#39;s not doing that for me:&lt;/p&gt;

&lt;p&gt;
When I specify &lt;b&gt;-C&lt;/b&gt; in the IDE options, the &lt;b&gt;.o&lt;/b&gt; output
file created is a preprocessor listing &lt;i&gt;instead of&lt;/i&gt; a compiled
object.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Keep Preprocessor Output AND Do Compile</title><link>https://community.arm.com/thread/64066?ContentTypeID=1</link><pubDate>Thu, 03 Sep 2015 10:17:10 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5adee459-2362-4cdd-9920-ee736f0304fa</guid><dc:creator>K Keeth</dc:creator><description>&lt;p&gt;&lt;p&gt;
When you select the options in the IDE it does the job, but the
output window shows:&lt;/p&gt;

&lt;pre&gt;
creating preprocessor file for XXX.C...
compiling XXX.C...
&lt;/pre&gt;

&lt;p&gt;
That suggests to me that it does one thing at a time.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>