So I've got this compiler.
It's the ACK, a BSD-licensed multitarget, multiplatform compiler suite
dating
from a few years ago, that I'm slowly knocking into shape. It's small,
it's
fast, it's got its own libraries, and while it doesn't generate the best
code
in the world it's more than adequate for most purposes.
http://tack.sourceforge.net/
Modula-2 is one of the many languages that it sup****ts. I got the compiler
working, and then learnt enough of the language to write a demo program
and
make it go. However, I am fundamentally not a Modula-2 programmer.
My problem is that the set of M2 libraries that come with the ACK are in a
bit
of a mess. I've found at least three ways of doing file I/O, for example,
one
of which uses calls to the fcntl() syscall with hard-coded constants;
there
are two maths libraries; the naming conventions are inconsistent... I just
don't know enough about Modula-2 to intelligently figure out what's worth
keeping and what needs throwing away.
Are there any Modula-2 experts here who would be interested in casting
their
eyes over it and telling me what they think? The libraries (.mod and .def
files, with some .c implementation files mixed in) are here:
http://tack.cvs.sourceforge.net/tack/Ack/lang/m2/libm2/
What I'd like to do is to strip the libraries down to something with the
same
sort of scope as ANSI C (because that's what the rest of the compiler
suite
will sup****t). What's the minimum set of libraries I can usefully get away
with?
--
┌── dg@cowlark.com ───
http://www.cowlark.com
───────────────────
│ "Thou who might be our Father, who perhaps may be in Heaven, hallowed
be
│ Thy Name, if Name Thou hast and any desire to see it hallowed..." ---
│ _Creatures of Light and Darkness_


|