[mercury-users] MSIL backend : missing mercury.runtime ?

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Mar 30 17:48:21 AEST 2001


On 29-Mar-2001, Pavel Zolnikov <pavelzolnikov at yahoo.com> wrote:
> But for library you need to build  private_builtin__c_code.cpp which can be
> built with MSVC only, right ?
> I'm not sure - because all this configure stuff is like magic for me ;-)

The *.cpp files used for the .NET back-end can only be built with MSVC, yes.
But it will compile those .cpp files with MSVC even if you configured
to use gcc as the C compiler.  For compiling .cpp files (in IL grades),
Mmake uses the $(MS_CL) variable, rather than the $(CC) variable.

$(MS_CL) defaults to `cl'.  You need to have `cl' in your PATH
(I don't think this is mentioned in README.DotNet -- perhaps that
was the problem?).

> Btw, I've played with calculator sample and it needs some changes to run on
> Windows -
> 
> fullexpr(X) -->
>  expr(X),
>      ['\r', '\n']. % this is what Windows folks call 'end of line'

This one is due to a bug in the Mercury runtime startup code which is
fixed in 0.10.1 (due to be released very shortly, snapshots which include
the fix are available from the beta-releases directory on the ftp site).
The problem is that stdin and stdout were getting set to binary mode
rather than text mode.

> And list__delete_all / 3 seems to delete the whole list, not only spaces.

Is that in IL grades or all grades?
Do you have a test case?

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list