[Mono-dev] Saving registers in runtime op code implementations

Rodrigo Kumpera kumpera at gmail.com
Sun Sep 30 18:15:19 UTC 2012


The JIT has support for emulating those ops with functions, it's easier and
safer to use this than to play around
during output_basic_block.

On Thursday, September 27, 2012, Braddock Gaskill (Contractor) wrote:

>  Hello folks,
> I am working on the port of Mono to the Tilera CPU.
>
> I want to call a C function within an IR op code implementation in
> mono_arch_output_basic_block(), in one case to emulate floating point
> division, for example.  I need to save the caller-saved registers before I
> make the function call - I have 30 of them on this architecture so I don't
> want to save them all, only the ones actually in use.
>
> Is it safe to only save the caller-saved registers flagged in the
> MonoCompile->used_int_regs?  Does that represent all the registers possibly
> in use for that method? (I don't have separate floating point regs)
>
> Thanks,
> Braddock Gaskill
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-devel-list/attachments/20120930/0c2e5df8/attachment.html>


More information about the Mono-devel-list mailing list