Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Modula 2 > Library help wa...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 330 of 376
Post > Topic >>

Library help wanted...

by David Given <dg@[EMAIL PROTECTED] > Apr 3, 2007 at 10:20 AM

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_
 




 5 Posts in Topic:
Library help wanted...
David Given <dg@[EMAIL  2007-04-03 10:20:50 
Re: Library help wanted...
john o goyo <j.o.goyo@  2007-04-04 11:57:59 
Re: Library help wanted...
David Given <dg@[EMAIL  2007-04-05 11:17:17 
Re: Library help wanted...
"Chris Burrows"  2007-04-05 21:26:31 
Re: Library help wanted...
john o goyo <j.o.goyo@  2007-04-05 11:40:21 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 26 5:24:33 CDT 2008.