<div dir="ltr"><div>Playing around with calling conventions naked functions and epilogue/prologue...</div><div>Is it possible/expressible/feasible to alter the return address the function will return to?<br></div><div><br></div><div>For example, when a function may return an Int8 or a Float64, depending on some external state</div><div>(user, or random variable), instead of checking the returned type in the calling function, is it possible</div><div>to pass 2 potential return addresses one suitable for Int8 and one suitable for Float64 and let the function return to the right place?</div><div><br></div><div>if it is possible, what are the implications? do these inhibit the optimization opportunities somehow?</div></div>