<?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>Compile same source code of Mesh-SDK-2.2, got different hex file</title><link>https://devzone.nordicsemi.com/f/nordic-q-a/41578/compile-same-source-code-of-mesh-sdk-2-2-got-different-hex-file</link><description>Hi Nordic: 
 I got a strange result, I compile a example of Mesh-sdk-2.2, such as proxy_client, then I copy proxy_client to another folder such as proxy_client_b and compile it. 
 Then I got two different hex files of proxy_client and proxy_client_b.</description><dc:language>en-US</dc:language><generator>Telligent Community 13</generator><lastBuildDate>Fri, 14 Dec 2018 05:16:54 GMT</lastBuildDate><atom:link rel="self" type="application/rss+xml" href="https://devzone.nordicsemi.com/f/nordic-q-a/41578/compile-same-source-code-of-mesh-sdk-2-2-got-different-hex-file" /><item><title>RE: Compile same source code of Mesh-SDK-2.2, got different hex file</title><link>https://devzone.nordicsemi.com/thread/161795?ContentTypeID=1</link><pubDate>Fri, 14 Dec 2018 05:16:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:c54e42c8-281a-45b5-a92d-0a303fa77e22</guid><dc:creator>jowei</dc:creator><description>&lt;p&gt;Hi tesc:&lt;/p&gt;
&lt;p&gt;Thanks sharing the good knowledge of compiler,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;After I set target option/compiler/supply absolute file path, then two folder&amp;#39;s hex file are same, but I havn&amp;#39;t check if this option will affect firmware behavior, thank you.&lt;/p&gt;
&lt;p&gt;Joseph&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compile same source code of Mesh-SDK-2.2, got different hex file</title><link>https://devzone.nordicsemi.com/thread/161794?ContentTypeID=1</link><pubDate>Fri, 14 Dec 2018 05:14:41 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:5a2191b3-2391-4382-b293-50693cb0e94b</guid><dc:creator>jowei</dc:creator><description>&lt;p&gt;Hi awneil:&lt;/p&gt;
&lt;p&gt;Yes, I mean Hex file, not ELF file&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compile same source code of Mesh-SDK-2.2, got different hex file</title><link>https://devzone.nordicsemi.com/thread/161751?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 17:39:04 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:859e8a76-a218-47a7-8645-4137d547f5c2</guid><dc:creator>awneil</dc:creator><description>&lt;p&gt;&lt;a href="https://devzone.nordicsemi.com/members/josephwei"&gt;jowei&lt;/a&gt; -&amp;nbsp; You are talking about the actual &lt;strong&gt;Hex&lt;/strong&gt; files - not the ELF ... ?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compile same source code of Mesh-SDK-2.2, got different hex file</title><link>https://devzone.nordicsemi.com/thread/161746?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 17:08:54 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:cce858d4-a76e-4dc9-bddd-ca626e2efd78</guid><dc:creator>tesc</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;What compiler and toolchain are you using?&lt;/p&gt;
&lt;p&gt;Reproducibility of software builds is an interesting topic. Some things to watch out for are the paths of the source files, timestamp of the build, random values generated at compile time, multithreaded build process leading to different placement of functions, data, etc. in the final binary, and more.&lt;/p&gt;
&lt;p&gt;I do not have an overview of what factors change for our nRF5 SDK for mesh examples, and reproducibility is not a stated goal for our examples. It would however be interesting to see what is the difference between your hex files, just as&amp;nbsp;&lt;a href="https://devzone.nordicsemi.com/members/awneil"&gt;awneil&lt;/a&gt;&amp;nbsp;asked for. Then maybe we can provide some suggestions for what might cause that difference.&lt;/p&gt;
&lt;p&gt;Regards,&lt;br /&gt;Terje&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Compile same source code of Mesh-SDK-2.2, got different hex file</title><link>https://devzone.nordicsemi.com/thread/161742?ContentTypeID=1</link><pubDate>Thu, 13 Dec 2018 16:33:39 GMT</pubDate><guid isPermaLink="false">137ad170-7792-4731-bb38-c0d22fbe4515:679cbcee-0bb0-4649-99e0-3dd17bf332a7</guid><dc:creator>awneil</dc:creator><description>[quote userid="68472" url="~/f/nordic-q-a/41578/compile-same-source-code-of-mesh-sdk-2-2-got-different-hex-file"]I hope same source code can get same hex file[/quote]
&lt;p&gt;Not necessarily.&lt;/p&gt;
&lt;p&gt;How different, exactly, are the hex files?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>