<?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 vs Keil code generation</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/25689/gcc-vs-keil-code-generation</link><description>Hello,
I am using Keil IDE for a while,and it is working perfect so far until, my code size gets bigger than 32K, I also decided to try GCC. I noticed GCC code size for identical example is bigger than Keil generated code size, I was hoping that GCC</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Wed, 04 Oct 2017 23:24:23 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/25689/gcc-vs-keil-code-generation" /><item><title>RE: GCC vs Keil code generation</title><link>https://devzone.nordicsemi.com/thread/101199?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 23:24:23 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:e7446a2a-3a1b-4da7-ba76-e5cc43db2597</guid><dc:creator>Krzysztof Zaraska</dc:creator><description>&lt;p&gt;Once I&amp;#39;ve hit the 32KB limit I&amp;#39;ve spent two weeks evaluating gcc-based solutions... and ended up buying Keil. It&amp;#39;s not about the compiler, it&amp;#39;s about the debugger.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC vs Keil code generation</title><link>https://devzone.nordicsemi.com/thread/101203?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 19:15:22 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a8d37f58-e226-4ec3-aa23-8cd045443f90</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;I personally prefer GCC because of free use and openness but both Keil and IAR are very good commercial products with strengths and I&amp;#39;ve seen projects where investment into their license was justified by size or performance constrains (although GCC guys are doing a lot in past 5 years so gap is getting closer and closer). Until you fit into 32kB Keil is good option (if you can survive the IDE, it drives me absolutely crazy:) Cheers&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC vs Keil code generation</title><link>https://devzone.nordicsemi.com/thread/101202?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 19:11:29 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:eca4a475-e2cb-4178-bcc0-71484f32dafa</guid><dc:creator>alikob</dc:creator><description>&lt;p&gt;Thanks endnode, and you indeed had a valid point in there. for now I am very happy with Keil, till I hit the 32K mark, Cheers :)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC vs Keil code generation</title><link>https://devzone.nordicsemi.com/thread/101201?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 19:08:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:2387a150-c641-44d8-b1d3-499472072b8c</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;:)&lt;/p&gt;
&lt;p&gt;(if you set decent optimizations modern compilers aren&amp;#39;t so far either;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC vs Keil code generation</title><link>https://devzone.nordicsemi.com/thread/101200?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 19:04:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f2a05149-d40e-423d-8165-cd226aee2988</guid><dc:creator>alikob</dc:creator><description>&lt;p&gt;well, there are pretty close:
&lt;a href="http://www.autoguide.com/car-comparisons/-2017-audi-a4-vs-2017-mercedes-benz-c300-comparison-test"&gt;link text&lt;/a&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC vs Keil code generation</title><link>https://devzone.nordicsemi.com/thread/101198?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 18:33:55 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:7b928043-98bd-46f2-81be-34c2ee7dd9c8</guid><dc:creator>endnode</dc:creator><description>&lt;p&gt;Come on, this is well known: different compiler/linker makes different product including different performance and size! &lt;a href="https://devzone.nordicsemi.com/blogs/835/comparing-compilersides-for-development-with-nrf5x/"&gt;Read the blog post from Nordic&lt;/a&gt; (and many many more on the internet).&lt;/p&gt;
&lt;p&gt;(It&amp;#39;s like buying Mercedes Benz and Audi cars and being surprised that their engines accelerate differently;)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: GCC vs Keil code generation</title><link>https://devzone.nordicsemi.com/thread/101197?ContentTypeID=1</link><pubDate>Wed, 04 Oct 2017 17:58:25 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c24d62a3-36a5-412a-ae78-43ca0b369d57</guid><dc:creator>Krzysztof Zaraska</dc:creator><description>&lt;p&gt;In gcc -Os tells the compiler to optimize for size.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>