<?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>Easy way to remove unused elements of the SDK</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/70275/easy-way-to-remove-unused-elements-of-the-sdk</link><description>After trials and tribulations I have finally gotten a pulse ox device to work as I needed to. I started with the health thermometer example in the 12.3.0 SDK which is the latest I can use with the nRF51822. 
 I removed as many of the SDK calls as I could</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Sun, 08 Aug 2021 11:14:56 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/70275/easy-way-to-remove-unused-elements-of-the-sdk" /><item><title>RE: Easy way to remove unused elements of the SDK</title><link>https://devzone.nordicsemi.com/thread/323888?ContentTypeID=1</link><pubDate>Sun, 08 Aug 2021 11:14:56 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:a01d7e21-68c3-4274-8e67-d6e1de6b274c</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;The reason for removing unused source from the project is simply to reduce it&amp;#39;s massive size when you want to distribute the project around. It will also reduce rebuild times. Going method by method would be quite tedious as there is no clear way to know if you have caught everything. In the end its beginning to look like the only feasible way to do this is to remove a file, build, and see if it succeeds.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy way to remove unused elements of the SDK</title><link>https://devzone.nordicsemi.com/thread/288252?ContentTypeID=1</link><pubDate>Sat, 09 Jan 2021 00:12:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:6a0fd512-45ba-4be7-b460-809583552605</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;but you know which source file each method comes from&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy way to remove unused elements of the SDK</title><link>https://devzone.nordicsemi.com/thread/288251?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2021 23:56:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cf96b66e-96b4-4843-9b86-fe5c559015fb</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;I will have to check again but I recall it was methods, not entire object file.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy way to remove unused elements of the SDK</title><link>https://devzone.nordicsemi.com/thread/288248?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2021 22:34:47 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:ded7ad52-036e-469c-853e-2cfa2b32581a</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;I think the map file should show you what source files correspond to the code ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy way to remove unused elements of the SDK</title><link>https://devzone.nordicsemi.com/thread/288247?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2021 22:32:10 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:da8cc0b1-3319-4265-9a7e-4ee46c58430e</guid><dc:creator>brianreinhold</dc:creator><description>&lt;p&gt;I looked at the map file and see that it does remove unused code. I would still like to remove files from the project that I don&amp;#39;t use&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Easy way to remove unused elements of the SDK</title><link>https://devzone.nordicsemi.com/thread/288246?ContentTypeID=1</link><pubDate>Fri, 08 Jan 2021 22:25:15 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:f4ad6232-fa16-4f7f-a9e5-56e414e9b300</guid><dc:creator>awneil</dc:creator><description>[quote userid="83646" url="~/f/nordic-q-a/70275/easy-way-to-remove-unused-elements-of-the-sdk"]I don&amp;#39;t know if the Keil compiler/linker is able to filter out unused object code[/quote]
&lt;p&gt;yes, it should be.&lt;/p&gt;
&lt;p&gt;GCC certainly can.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>