<?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>Problems compiling assembly for cortex m3</title><link>https://community.arm.com/developer/tools-software/tools/f/armds-forum/548/problems-compiling-assembly-for-cortex-m3</link><description> Note: This was originally posted on 20th February 2011 at http://forums.arm.com Hi, My platform is Stellaris Cortex M3 and I&amp;#39;m using one of the recent releases of Codesourcery Lite toolchain. I&amp;#39;m trying to put an assembly source file to my project and</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Problems compiling assembly for cortex m3</title><link>https://community.arm.com/thread/1231?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 10:57:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:82b1369a-dcca-4ab7-a7f5-1b5ec1d28c96</guid><dc:creator>Gestur Palsson</dc:creator><description>&lt;div&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems compiling assembly for cortex m3</title><link>https://community.arm.com/thread/1230?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 10:57:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5cc9afe7-eb52-4748-9064-3a613d7bdd3f</guid><dc:creator>Simon Craske</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 22nd February 2011 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Palsson,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Did you actually try my suggestion? GCC when given a file ending in a lower case &amp;quot;.s&amp;quot; just sends the file to GAS; if however it ends in a capital &amp;quot;.S&amp;quot;, it sends it to CPP before sending it to GAS.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;hth&lt;/span&gt;&lt;br /&gt;&lt;span&gt;s.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems compiling assembly for cortex m3</title><link>https://community.arm.com/thread/1232?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 10:57:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b54c3189-8f93-44c6-b5fd-07ed5df2c7b6</guid><dc:creator>Gestur Palsson</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 22nd February 2011 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Hi S,&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Unfortunately, it is not that easy :-)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;If I remove all macros and register re-definitions, #define&amp;#39;s, it can compile.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;So, I need hints on compiler flags to enable macros and register definitions (pre-processing)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Thanks...&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;Regards&lt;/span&gt;&lt;br /&gt;&lt;span&gt;palsson&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Problems compiling assembly for cortex m3</title><link>https://community.arm.com/thread/1228?ContentTypeID=1</link><pubDate>Wed, 11 Sep 2013 10:57:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:473dceda-e722-4178-ad85-f0e7f5fe7e36</guid><dc:creator>Simon Craske</dc:creator><description>&lt;div&gt;&lt;i&gt;Note: This was originally posted on 21st February 2011 at &lt;a href="http://forums.arm.com"&gt;http://forums.arm.com&lt;/a&gt;&lt;/i&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;If you&amp;#39;re using gcc rather than as; then a simple solution is just to rename the file from &amp;quot;asmFile.s&amp;quot; to &amp;quot;asmFile.S&amp;quot;&lt;/span&gt;&lt;br /&gt;&lt;span&gt;(note the capital .S), e.g.:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;&amp;#160; # arm-none-linux-gnueabi-gcc -c -mcpu=cortex-m3 -mthumb asmFile.S&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span&gt;hth&lt;/span&gt;&lt;br /&gt;&lt;span&gt;s.&lt;/span&gt;&lt;/div&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>