[prev in list] [next in list] [prev in thread] [next in thread] 

List:       mono-devel-list
Subject:    Re: [Mono-dev] Saving registers in runtime op code implementations
From:       Rodrigo Kumpera <kumpera () gmail ! com>
Date:       2012-09-30 18:15:19
Message-ID: CACmR+BCTAoWwFGJKPW1zJCDP8JWgCHswtQTAX3DS7hcEvpcj_w () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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
>

[Attachment #5 (text/html)]

The JIT has support for emulating those ops with functions, it&#39;s easier and safer \
to use this than to play around<div>during \
output_basic_block.<span></span><br><div><br>On Thursday, September 27, 2012, \
Braddock Gaskill (Contractor)  wrote:<br> <blockquote class="gmail_quote" \
style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hello folks,<br>
I am working on the port of Mono to the Tilera CPU.<br>
<br>
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&#39;t want to save them all, only \
the ones actually in use.<br> <br>
Is it safe to only save the caller-saved registers flagged in the \
MonoCompile-&gt;used_int_regs?  Does that represent all the registers possibly in use \
for that method? (I don&#39;t have separate floating point regs)<br>

<br>
Thanks,<br>
Braddock Gaskill<br>
</div>
</div>

</blockquote></div></div>



_______________________________________________
Mono-devel-list mailing list
Mono-devel-list@lists.ximian.com
http://lists.ximian.com/mailman/listinfo/mono-devel-list


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic