[M3devel] m2tom3

Daniel Alejandro Benavides D. dabenavidesd at yahoo.es
Wed Nov 16 01:22:31 CET 2011

Hi all:
yeah my fault, but as I recall although I could compile this years ago, the main issue is that it didn't even work to feed the file to compile or so failed in therefore the first character was read. So it never worked for real for me.
My best bet would export a SUN Unix syscall interface (since it tailored the SUN Modula-2 library) spec like Sphinx in SPIN OS so an export of it for every Modula-3 program understands itself right (yeah it coudl take the years spent from when I compiled until today, or so).
If I were to start a new project perhaps would start making Unix legacy and updated replacements.
The other approach perhaps the most indicated is just to wrap C on SPIN code to make it user level server. This could make the thing (inf act there is FreeBSD server already there just miss several calls, but nonetheless is something there).
BTW, I don' know which platform this compiler used to work, so the main point would be emulate the real sys calls, since they just emulated in Sun OS and Solaris, nothing more. This has a potential utility for another project that depends on this m2tom3 tool.
Thanks in advance

--- El mar, 15/11/11, Mika Nystrom <mika at async.caltech.edu> escribió:

> De: Mika Nystrom <mika at async.caltech.edu>
> Asunto: Re: [M3devel] m2tom3
> Para: "Mark Wickens" <mark at wickensonline.co.uk>
> CC: m3devel at elegosoft.com
> Fecha: martes, 15 de noviembre, 2011 18:24
> What I would do is:
> 1. delete IMPORT TextF
> 2. see what breaks, figure out the intent of the code,
> recode it using Text
> 3. check in the result to the CM3 repository so no one has
> to do it again!
>    Mika
> Mark Wickens writes:
> >Guys,
> >
> >I found the m2tom3 translation utility here: 
> >http://freepages.modula2.org/downloads/m2tom3-2.03.tar.gz
> >I attempted to compile it using cm3, but I get an
> unknown interface:
> >
> >msw at x60:~/m2tom3/m2tom3/src$ cm3
> >--- building in ../LINUXLIBC6 ---
> >
> >unsupported m3_option value: "-O"
> >new source -> compiling Standard.m3
> >"../src/Analyzer/Standard.m3", line 25: unable to find
> interface (TextF)
> >1 error encountered
> >compilation failed => not building program "m2tom3"
> >Fatal Error: package build failed
> >
> >
> >Has anyone heard of interface TextF? Alternatively, is
> there a port of 
> >this utility to cm3?
> >
> >I recently uncovered a machine-readable copy of my
> degree final year 
> >project, a Meta Assembler, written in Modula-2, and
> wondered if I could 
> >get it to compile using the utility to work with
> Modula-3.
> >
> >Regards,
> >
> >Makr.

More information about the M3devel mailing list