[m-rev.] for review: standalone interfaces

Julien Fischer juliensf at csse.unimelb.edu.au
Mon Feb 12 19:08:05 AEDT 2007


On Mon, 5 Feb 2007, Julien Fischer wrote:

> Estimated hours taken: 20
> Branches: main
>
> Improve support for calling procedures in Mercury libraries from
> applications written in foreign languages, i.e where the program entry point
> is not the Mercury predicate main/2.  The main trick is to ensure that the
> necessary runtime initialisation is done before any Mercury procedures are
> called (or at least to provide the mechanism to do such initialisation,
> ensuring that it is done is the programmer's responsibility.)

I should point out that this doesn't work in lowlevel C grades at the
moment (unless you compile the runtime at -O0) thanks to gcc helpfully
deciding to optimise away MR_dummy_main.  This should be fixed soon - 
everything is fine in high-level C grades.

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



More information about the reviews mailing list