Re: Anonymous mmap in the runtime unsupported in openmvs environment

Matthew Fluet <[email protected]> Wed, 24 Apr 2013 23:01:54 -0400
Newsgroups gmane.comp.lang.ml.mlton.devel
Message-ID <CAMrhFL7-7Tq3V=4xkboavxsWnnimuUCz8KBt3DK3kvCzPXnTOg@mail.gmail.com>
On Wed, Apr 24, 2013 at 2:17 AM, 吴佳森 <[email protected]> wrote:

> I've made some modification to mlton according to your suggestion and it
> works on open mvs. That's great! Thank you.
>
> I tested a few small programs, such as print out a message, work
> perfectly. But unfortunately there is a problem with mlyacc. I compile it
> with '-target s390-ibm-openmvs -codegen c -stop g' to generate c source
> code and then uploaded them. The c source code compiles but the binary
> raises an exception "Subscript" during execution (simply run ./mlyacc with
> no arguments).  I guess it is raised somewhere accessing the list
> structure, and I need to make some further investigation into it.
>

Glad to hear that using malloc/free worked out.

You could try compiling mlyacc with "-const 'Exn.keepHistory true'", which
should give you a stack trace of the uncaught exception.  That might shed
some light on what is causing the failure.

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr

_______________________________________________
MLton-devel mailing list
[email protected]; [email protected]
https://lists.sourceforge.net/lists/listinfo/mlton-devel