<div dir="auto"><div>Hi,<div dir="auto"><br></div><div dir="auto">Any suggestions on this if there is any such flag available with clang.</div><div dir="auto"><br></div><div dir="auto">Regards</div><div dir="auto">Priyanka</div><br><br><div class="gmail_quote"><div dir="ltr">On Mon 9 Apr, 2018, 11:03 AM Priyanka Bose, <<a href="mailto:dolabose.21@gmail.com">dolabose.21@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div dir="auto"><span style="font-family:"segoe ui","segoe ui emoji","segoe ui symbol",lato,"helvetica neue",helvetica,arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Hi ,</span></div><div dir="auto"><span style="font-family:"segoe ui","segoe ui emoji","segoe ui symbol",lato,"helvetica neue",helvetica,arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div><span style="font-family:"segoe ui","segoe ui emoji","segoe ui symbol",lato,"helvetica neue",helvetica,arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I would like to know if there is any way to reorder functions in the object file in order to improve code locality by implementing subsections .text.hot. </span><br style="margin-top:0px;font-family:"segoe ui","segoe ui emoji","segoe ui symbol",lato,"helvetica neue",helvetica,arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><span style="font-family:"segoe ui","segoe ui emoji","segoe ui symbol",lato,"helvetica neue",helvetica,arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">GCC controls this behavior with '-f(no)-reorder-functions' flag, is there any way to do so in clang?</span><div dir="auto"><span style="font-family:"segoe ui","segoe ui emoji","segoe ui symbol",lato,"helvetica neue",helvetica,arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><br></span></div><div dir="auto"><span style="font-family:"segoe ui","segoe ui emoji","segoe ui symbol",lato,"helvetica neue",helvetica,arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Regards,</span></div><div dir="auto"><span style="font-family:"segoe ui","segoe ui emoji","segoe ui symbol",lato,"helvetica neue",helvetica,arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">Priyanka</span></div></div></blockquote></div></div></div>