<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://test-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>Building C library with GCC, targeting nRF52832</title><link>https://test-devzone.nordicsemi.com/f/nordic-q-a/88334/building-c-library-with-gcc-targeting-nrf52832</link><description>Hello, 
 I have a pure-C library that I&amp;#39;d like to build, and then import into another project that targets the nRF52832 (nRF5 SDK v16.0.0). The library has no dependencies on nRF5 SDK, meaning the code does not #include any files from the nRF5 SDK. This</description><dc:language>en-US</dc:language><generator>Telligent Community 13 Non-Production</generator><lastBuildDate>Fri, 27 May 2022 13:08:42 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://test-devzone.nordicsemi.com/f/nordic-q-a/88334/building-c-library-with-gcc-targeting-nrf52832" /><item><title>RE: Building C library with GCC, targeting nRF52832</title><link>https://test-devzone.nordicsemi.com/thread/369795?ContentTypeID=1</link><pubDate>Fri, 27 May 2022 13:08:42 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:314ba680-5679-46f4-ad97-d4f70283824f</guid><dc:creator>user7377</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I recommend referring to SES documentation for details about what these options control. Most of them are clearly SES specific though, and do not require a counterpart when you build your library with GCC. There are some things to consider when building libraries for different toolchains and ICs, though. Most importantly, toolchains have different wchar lengths. So for IAR 7 for instance, the wchar length is 2 bytes whereas for GCC and SES and IAR, it is 4. Also, you may want to enable hardware floating point for devices that use that.&lt;/p&gt;
&lt;p&gt;I suggest you refer to the Makefiles for different ICs and toolchains for micro-ecc, which lets you see how this can be done (&amp;lt;nRF5 SDK&amp;gt;/external/micro-ecc/).&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>