News for hackers. Stuff that matters.
Re:Porting GHC: A Tale of Two Architectures by rwmj on Tuesday April 15, 2014 @08:18AM (#7591390)
This is the function using ret x19:

https://git.fedorahosted.org/cgit/fedora-ocaml.git/tree/asmr...

What do you think? Looks like a return to me, albeit using an unusual register. Note that this code is especially speed critical because every time OCaml calls a C function that could allocate GC'd memory, it has to go through this function.

Re:Porting GHC: A Tale of Two Architectures by pm215 on Tuesday April 15, 2014 @09:25AM (#7591635)
Yeah, that's a legitimate use; it is (judging by the code) relying on the fact that it's glue between two calling conventions where the outer one has more callee-saves registers, so we can save LR in a register rather than putting it on the stack.