[m-dev.] lcmc for high-level data

Peter Wang novalazy at gmail.com
Mon Sep 7 16:44:58 AEST 2009


I'm considering how to make the lcmc optimisation work for the Java
backend (and high-level data generally).  It is incompatible because it
relies on being able to take the address of a field, and then assigning
a value into an arbitrary memory address in the variant procedure.[1]

How difficult would it be to change the transformation so that instead
of passing the address of a field, pass the address of the entire cell,
and rely on the variant procedure to know which field needs to be
assigned?

Peter

[1] That could possibly be emulated using the Java reflection API, but
that would probably be slow.
--------------------------------------------------------------------------
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