<div dir="ltr"><div class="gmail_extra" style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial">> <span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">To be fair, the GCC version which comes with the android ndk has not been updated for four years, while the clang version is kept up-to-date. It would be interesting to compare clang and GCC latest releases instead... that's where the future lies :p<span> </span></span></div><div class="gmail_extra" style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial"><br></div><div class="gmail_extra" style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial">Looks like you didn't read the whole article. Well, for more complete comparison between GCC and LLVM/clang, I have used four different LLVM/clang</div><div class="gmail_extra" style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial">versions(old to to the new), from within the Google's Android NDK and from outside of the NDK i.e., from other sources, in my project as under :</div><div class="gmail_extra" style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial"><div class="gmail_extra"><ol><li style="margin-left:15px"><font face="monospace, monospace"><b>NDK r13b LLVM/clang : Android clang version 3.8.256229 (based on LLVM 3.8.256229)<br><br></b></font></li><li style="margin-left:15px"><font face="monospace, monospace"><b><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">Qualcomm Snapdragon LLVM/clang for Android : Snapdragon LLVM ARM Compiler 4.0.2 for Android NDK (based on<span> </span><a href="http://llvm.org/" target="_blank" style="color:rgb(17,85,204)">llvm.org</a><span> </span>4.0+) - clang version 4.0.2 for Android NDK<br></span><br></b></font></li><li style="margin-left:15px"><font face="monospace, monospace"><b><span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">NDK r17 LLVM/clang : </span>Android (4691093 based on r316199) clang version 6.0.2 (<a href="https://android.googlesource.com/toolchain/clang" target="_blank" style="color:rgb(17,85,204)">https://android.googlesource.<wbr>com/toolchain/clang</a>183abd29fc496f55536e7d904e0aba<wbr>e47888fc7f) (<a href="https://android.googlesource.com/toolchain/llvm" target="_blank" style="color:rgb(17,85,204)">https://android.googlesource.<wbr>com/toolchain/llvm</a><span> </span>34361f192e41ed6e4e8f9aca80a4ea<wbr>7e9856f327) (based on LLVM 6.0.2svn)<br><br></b></font></li><li style="margin-left:15px"><font face="monospace, monospace"><b>Main LLVM/clang : Flash clang version 7.0.332826 (<a href="https://git.llvm.org/git/clang" target="_blank" style="color:rgb(17,85,204)">https://git.llvm.org/git/<wbr>clang</a><span> </span>4029c7ddda99ecbfa144f0afec44a1<wbr>92c442b6e5) (<a href="https://git.llvm.org/git/llvm" target="_blank" style="color:rgb(17,85,204)">https://git.llvm.org/git/llvm</a><span> </span>1181c40e0e24e0cca32e2609686db1<wbr>f14151fc1a) (based on LLVM 7.0.332826)</b></font></li></ol></div></div><div class="gmail_extra" style="font-size:12.8px;text-decoration-style:initial;text-decoration-color:initial">And I saw improved battery usage in all these cases as published over there in my article. So, read the entire article before making assumptions... :p</div><br><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jun 14, 2018 at 3:16 PM, Jean-Michaël Celerier <span dir="ltr"><<a href="mailto:jeanmichael.celerier@gmail.com" target="_blank">jeanmichael.celerier@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><div>> The main advantage of the clang-built Android ARM(32-bit) hammerhead kernel for my Nexus 5 has been the better battery usage when compared to that of gcc-built kernel, with the same kernel config and hardware(my Nexus 5 Android Smartphone). Details of the same can be found below.</div><div><br></div></span><div>To be fair, the GCC version which comes with the android ndk has not been updated for four years, while the clang version is kept up-to-date. It would be interesting to compare clang and GCC latest releases instead... that's where the future lies :p <br></div><div class="gmail_extra"><div><div class="m_7939441465013246652gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font color="#783f04"><br></font></div><div><font size="2" face="arial, helvetica, sans-serif" color="#134f5c">-------</font></div><font size="2" face="arial, helvetica, sans-serif" color="#134f5c">Jean-Michaël Celerier</font><div><font size="2" face="arial, helvetica, sans-serif" color="#134f5c"><a href="http://www.jcelerier.name" target="_blank">http://www.jcelerier.name</a></font></div></div></div></div>
<br></div></div>
</blockquote></div><br></div></div>