[Gc] Uses of SSE registers?

Bruce Hoult bruce at hoult.org
Thu Oct 17 00:35:03 PDT 2013

Oh! If you do that then either ALL code you ever call (including all
standard libraries) must be compiled to know not to use that register, OR
you must save and restore it yourself whenever calling a library function,
OR make sure the register you use is defined by the ABI as being

On Thursday, October 17, 2013, Yi Lin wrote:

>  I tried in my program to use one SSE register to store a C global
> variable (gcc has support for this). But the value from that register
> variable was not as intended sometimes. I am trying to figure out the
> reason, and one of my guesses is that the GC uses those registers. I will
> try use -mno-sse for building the GC and see what happens then.
> Thanks very much.
> Regards,
> Yi
> On 17/10/2013 4:12 PM, Bruce Hoult wrote:
> I could be wrong, but I don't *think* there is anything explicitly about
> SSE in the GC, except for adjusting the exception mask when pushing
> callee-save registers.
>  It could well be that your build flags are such that your compiler uses
> SSE instructions for some things written in C.
>  I'm also not entirely sure why you believe that you'd want or need to
> prevent the GC from using SSE?
> On Thu, Oct 17, 2013 at 5:02 PM, Yi Lin <qinsoon at gmail.com<javascript:_e({}, 'cvml', 'qinsoon at gmail.com');>
> > wrote:
>> Hi all,
>> It seems the GC uses SSE registers. If I want to use those registers in
>> my program, is there a way to turn it off for the GC?
>> Thanks very much.
>> Regards,
>> Yi
>> _______________________________________________
>> Gc mailing list
>> Gc at linux.hpl.hp.com <javascript:_e({}, 'cvml', 'Gc at linux.hpl.hp.com');>
>> https://www.hpl.hp.com/hosted/linux/mail-archives/gc/
>> --
>> This message has been scanned for viruses and
>> dangerous content by MailScanner, and is
>> believed to be clean.
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* <https://www.mailscanner.info/>, and is
> believed to be clean.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://napali.hpl.hp.com/pipermail/gc/attachments/20131017/7872057e/attachment.htm

More information about the Gc mailing list