os_claim

Tony van der Hoff OSLib at mk-net.demon.co.uk
Tue Dec 12 10:45:03 GMT 2000


On Mon, 11 Dec 2000, at 12:02:20, Jonathan Coxhead
<jonathan at doves.demon.co.uk> wrote on the subject "os_claim":

>   The trouble is that the |routine| argument is not actually pointing at a 
>piece of C code: it's pointing at a piece of assembler. Though sometimes 
>you can call such a thing by casting the argument to a function pointer and 
>jumping, it's not clean because of the different calling conventions and 
>return mechanism. (Consider returning from a vector with/without "claiming" 
>it.)
>
<snip>

Thanks for that, Jonathan, it's certainly cleared up a few issues in my
mind. AFAIK CMHG is still around, but of course has all the constraints
associated with its heritage. There is an open-source replacement
available (CMumge) written by Justin Fletcher and Robin Watts.

It seems to me that the ideal way forward would be to extend that
utility along the lines you suggest. I'll pursue that path in the coming
weeks; starting by contacting the authors; I might even persuade them to
do some of the work ;-). I'd like to forward your suggestions to them; I
trust you have no objection.

cheers, Tony
-- 
Tony van der Hoff         |  mailto:OSLib at mk-net.demon.co.uk
Buckinghamshire, England  |  http://www.mk-net.demon.co.uk/oslib/
----------------------------------------------------------------



More information about the oslib-team mailing list