<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://devzone.nordicsemi.com/cfs-file/__key/system/syndication/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/" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GCC startup code assembly file extension should be .sx instead of .s</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/9891/gcc-startup-code-assembly-file-extension-should-be-sx-instead-of-s</link><description>In the nRF51 SDK startup code, in the folder toolchain\gcc, there is a file called gcc_startup_nrf51. s . I think this file should be called gcc_startup_nrf51. sx instead, as it contains macro definitions and needs the preprocessor running over it. According</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Mon, 04 Apr 2016 13:41:45 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/9891/gcc-startup-code-assembly-file-extension-should-be-sx-instead-of-s" /><item><title>RE: GCC startup code assembly file extension should be .sx instead of .s</title><link>https://devzone.nordicsemi.com/thread/36685?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2016 13:41:45 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:9696308d-8138-4a7a-aafc-f52749f572aa</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;Thanks!  .&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC startup code assembly file extension should be .sx instead of .s</title><link>https://devzone.nordicsemi.com/thread/36684?ContentTypeID=1</link><pubDate>Mon, 04 Apr 2016 13:39:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:3a6f8795-9533-499f-87b9-33066dbc0b62</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Think you&amp;#39;re right, from the GCC documentation it looks like we should have used either .sx or .S. So I have reported this internally. Thanks for lettings us know! Will update this thread as soon as I get some feedback on it.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC startup code assembly file extension should be .sx instead of .s</title><link>https://devzone.nordicsemi.com/thread/36683?ContentTypeID=1</link><pubDate>Fri, 01 Apr 2016 11:19:17 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:23a35cfd-9e5b-4714-b75a-9bf2430f2b63</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;The issue is still present in the GCC v4.9, I also confirmed it with SDK11 on nRF52. It is definitely related to the file name, as you can see in the GCC documentation: &lt;a href="https://gcc.gnu.org/onlinedocs/gcc/Overall-Options.html"&gt;link GCC Options&lt;/a&gt;. Please search for &amp;#39;.sx&amp;#39; in this document. Also see the -x option some lines below.&lt;/p&gt;
&lt;p&gt;.s files contain assembler code (usually generated from .c files) that do not need the C preprocessor to run over it again. If assembler code contains C preprocessor directives, the file shold be named .sx or .S (upper case). Alternatively, the GCC option &amp;#39;-x assembler-with-cpp&amp;#39; may be used to explicitly instruct GCC to run the C preprocessor on the .s file, but that doesn&amp;#39;t comply with standard GCC file naming schemes.&lt;/p&gt;
&lt;p&gt;I really think this is a naming issue, and that the current SDK doesn&amp;#39;t comply with the common C / Assembly file naming standards.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC startup code assembly file extension should be .sx instead of .s</title><link>https://devzone.nordicsemi.com/thread/36682?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 13:41:06 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:4e6a1613-c774-4e19-8874-22e92444e82d</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;I haven&amp;#39;t heard reports of this issue with v.4.8 before, but I guess it&amp;#39;s worth a shot. Another thing to try is to build with a clean copy of a SDK and see it it still does not build &amp;#39;out of the box&amp;#39;.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC startup code assembly file extension should be .sx instead of .s</title><link>https://devzone.nordicsemi.com/thread/36681?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 13:36:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a94dff6c-2072-458d-a179-bc0fe3748c6d</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;Thanks for the hint. When I find some time, I will try it out with version 4.9.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC startup code assembly file extension should be .sx instead of .s</title><link>https://devzone.nordicsemi.com/thread/36679?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 13:30:32 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c92a413f-3ce7-4312-8320-3d31207ef32d</guid><dc:creator>puz_md</dc:creator><description>&lt;p&gt;Yes, I&amp;#39;m using Windows. We were using 4.7 2013q1 further in the past but due to some issues, we had to update to 4.8 2013q4.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC startup code assembly file extension should be .sx instead of .s</title><link>https://devzone.nordicsemi.com/thread/36678?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 13:21:19 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2c85f26-d0b1-4c13-bdbf-89634f18cad4</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Are you working on windows or a different platform? See that gcc-arm-embedded 4.7 2013q1 was used for testing of the older SDKs&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC startup code assembly file extension should be .sx instead of .s</title><link>https://devzone.nordicsemi.com/thread/36680?ContentTypeID=1</link><pubDate>Fri, 23 Oct 2015 13:19:37 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:dd037f5b-762a-4fc0-84c5-b8f335ec5ae7</guid><dc:creator>Vidar Berg</dc:creator><description>&lt;p&gt;Hi, I haven&amp;#39;t had any problems with using the .s extension. Although it has been awhile since I&amp;#39;ve used version 4.8. Using 4.9 I&amp;#39;m able to use the __STACK_SIZE,etc defines by adding them to asmflags in the makefile.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>