[m-dev.] MR_CPU_SFENCE required for .par grades?

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Aug 29 15:06:18 AEST 2011


On Mon, 29 Aug 2011, Paul Bone wrote:

> On Fri, Aug 26, 2011 at 03:23:53PM +1000, Julien Fischer wrote:
>>
>> Hi,
>>
>> The .par grades (including hlc.par.gc) now require MR_CPU_SFENCE to be
>> available.  Is this intentional?  Even, for the hlc.par.gc grade?
>>
>
> It is intentional for low level C par grades, but not for high level C ones.
>
> There are slower algorithms we can (and should be) using when it's not
> available.  This is also true for many of the other assembler definitions and
> compiler intrinsics.

We need something to handle the case where it is not available.  At the
moment it it isn't possible to build either of the above grades with
anything other than gcc or clang, e.g. Visual C.

Julien.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at csse.unimelb.edu.au
Administrative Queries: owner-mercury-developers at csse.unimelb.edu.au
Subscriptions:          mercury-developers-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the developers mailing list