<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 20, 2009, at 2:22 PMPDT, dan mihai wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">Hello,<br><br>Is it possible to jump from one function to the beginning of another function?</div></span></blockquote><div><br></div><div>This can't be represented in llvm IR (or in standard C/C++).  An optimization called (in LLVM) "tail call" will generate this at the assembly level, but not all back ends have this implemented.</div><br><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 16px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div class="hmmessage" style="font-size: 10pt; font-family: Verdana; ">For instance, assume wrapper_FOO is a wrapper for FOO. I replace the code<br>..............................<br>bar() {<br> FOO(...)<br>}<br>..............................<br>with<br>..............................<br>bar() {<br>  wrapper_FOO(...)<br>}<br>..............................<br><br>Now, for efficiency, I'd like to have<br>wrapper_FOO() {<br>  <do some work><br>  jump FOO;<br>}<br><br>Thank you,<br>Dan<br></div></span></blockquote></div><br></body></html>