Old m2 code and m2f

This is a discussion on Old m2 code and m2f within the modula forums in Programming Languages category; Folks I'm trying to convert some very old m2 code such that it works on m2f (i.e. gm2). Trouble is, this stuff worked on the Sun Modula-2 compiler (yes it's that old!). It also worked on m2amiga, but on gm2, I'm getting errors. Rather than list the errors, I thought I'd ask what folks think of m2f (running on a Debian platform). Any comments? The nature of the code is that it's lisp list processing (a real 1st year computer science coursework from 1993!). Each element is a character but I'm getting type conversion problems where I didn't on other ...

Go Back   Application Development Forum > Programming Languages > modula

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 06-16-2005, 09:22 AM
Rob
Guest
 
Default Old m2 code and m2f

Folks

I'm trying to convert some very old m2 code such that it works on m2f (i.e.
gm2). Trouble is, this stuff worked on the Sun Modula-2 compiler (yes it's
that old!). It also worked on m2amiga, but on gm2, I'm getting errors.

Rather than list the errors, I thought I'd ask what folks think of m2f
(running on a Debian platform). Any comments?

The nature of the code is that it's lisp list processing (a real 1st year
computer science coursework from 1993!). Each element is a character but
I'm getting type conversion problems where I didn't on other compilers.

Cheers
Rob


Reply With Quote
  #2  
Old 06-17-2005, 02:22 PM
Gaius Mulley
Guest
 
Default Re: Old m2 code and m2f

"Rob" <gofyself@wrong.address.com> writes:

> Folks
>
> I'm trying to convert some very old m2 code such that it works on m2f (i.e.
> gm2). Trouble is, this stuff worked on the Sun Modula-2 compiler (yes it's
> that old!). It also worked on m2amiga, but on gm2, I'm getting errors.
>
> Rather than list the errors, I thought I'd ask what folks think of m2f
> (running on a Debian platform). Any comments?
>
> The nature of the code is that it's lisp list processing (a real 1st year
> computer science coursework from 1993!). Each element is a character but
> I'm getting type conversion problems where I didn't on other compilers.
>
> Cheers
> Rob


Hi Rob,

if you are having portability problems when using m2f you might want
to try gm2 (if you can face building it from source). It started
with the same front end as m2f but has had many years of improvements
applied and it uses the gcc backend of course. Gm2 allows sets to be
any size and has numerous restrictions lifted. Take a look at:
http://floppsie.comp.glam.ac.uk/Glam...NUModula2.html

and here for limited documentation:

http://floppsie.comp.glam.ac.uk/Glam...s/web/gm2.html

Most of the m2f libraries are also available with gm2. M2f is very
strict on typing. GM2 version is 0.45 less mature in theory to m2f but
is reliable enough on a debian i386 or opteron pure64 platform to be
self supporting. I develop gm2 on pure64 debian and also i386 debian
stable and debian i386 testing. Gm2 can also compile all but two of
Andreas Borchert's ULM libraries (it occasionally has problems with
modules declared inside procedures) - though I must emphasize these
modules have not yet been stressed with gm2,

hope this helps,

Gaius


Reply With Quote
  #3  
Old 06-19-2005, 03:55 AM
Rob
Guest
 
Default Re: Old m2 code and m2f


"Gaius Mulley" <gaius@glam.ac.uk> wrote in message
news:87r7f0etc7.fsf@floppsie.comp.glam.ac.uk...
> "Rob" <gofyself@wrong.address.com> writes:
>
>> Folks
>>
>> I'm trying to convert some very old m2 code such that it works on m2f
>> (i.e.
>> gm2). Trouble is, this stuff worked on the Sun Modula-2 compiler (yes
>> it's
>> that old!). It also worked on m2amiga, but on gm2, I'm getting errors.
>>
>> Rather than list the errors, I thought I'd ask what folks think of m2f
>> (running on a Debian platform). Any comments?
>>
>> The nature of the code is that it's lisp list processing (a real 1st year
>> computer science coursework from 1993!). Each element is a character
>> but
>> I'm getting type conversion problems where I didn't on other compilers.
>>
>> Cheers
>> Rob

>
> Hi Rob,
>
> if you are having portability problems when using m2f you might want
> to try gm2 (if you can face building it from source). It started
> with the same front end as m2f but has had many years of improvements
> applied and it uses the gcc backend of course. Gm2 allows sets to be
> any size and has numerous restrictions lifted. Take a look at:
> http://floppsie.comp.glam.ac.uk/Glam...NUModula2.html
>
> and here for limited documentation:
>
> http://floppsie.comp.glam.ac.uk/Glam...s/web/gm2.html
>
> Most of the m2f libraries are also available with gm2. M2f is very
> strict on typing. GM2 version is 0.45 less mature in theory to m2f but
> is reliable enough on a debian i386 or opteron pure64 platform to be
> self supporting. I develop gm2 on pure64 debian and also i386 debian
> stable and debian i386 testing. Gm2 can also compile all but two of
> Andreas Borchert's ULM libraries (it occasionally has problems with
> modules declared inside procedures) - though I must emphasize these
> modules have not yet been stressed with gm2,
>
> hope this helps,
>
> Gaius
>
>

I've had a go - but it refuses to compile. Not sure why - I can do the
make, but make install fails trying to create something in //usr/..

A quick grep can't find the //usr in question so I'm a bit stuck.

Cheers
Rob


Reply With Quote
  #4  
Old 06-20-2005, 08:39 AM
Gaius Mulley
Guest
 
Default Re: Old m2 code and m2f

"Rob" <gofyself@wrong.address.com> writes:

> I've had a go - but it refuses to compile. Not sure why - I can do the
> make, but make install fails trying to create something in //usr/..
>
> A quick grep can't find the //usr in question so I'm a bit stuck.
>
> Cheers
> Rob


Hi Rob,

please can you email me the configure/build/install output?
Did you try using gm2-harness-0.4.tar.gz? This downloads latest
cvs, correct gcc, does a configure and build etc.

This can be obtained from:

http://floppsie.comp.glam.ac.uk/down...ess-0.4.tar.gz

Gaius
Reply With Quote
  #5  
Old 06-23-2005, 08:54 AM
Rob
Guest
 
Default Re: Old m2 code and m2f


"Gaius Mulley" <gaius@glam.ac.uk> wrote in message
news:87r7exp5h7.fsf@floppsie.comp.glam.ac.uk...
> "Rob" <gofyself@wrong.address.com> writes:
>
>> I've had a go - but it refuses to compile. Not sure why - I can do the
>> make, but make install fails trying to create something in //usr/..
>>
>> A quick grep can't find the //usr in question so I'm a bit stuck.
>>
>> Cheers
>> Rob

>
> Hi Rob,
>
> please can you email me the configure/build/install output?
> Did you try using gm2-harness-0.4.tar.gz? This downloads latest
> cvs, correct gcc, does a configure and build etc.
>
> This can be obtained from:
>
> http://floppsie.comp.glam.ac.uk/down...ess-0.4.tar.gz
>
> Gaius


Tried this - but it's asking for a password when I do

make

What's the password?


Reply With Quote
  #6  
Old 06-23-2005, 12:08 PM
Gaius Mulley
Guest
 
Default Re: Old m2 code and m2f

"Rob" <gofyself@wrong.address.com> writes:

>
> Tried this - but it's asking for a password when I do
>
> make
>
> What's the password?


gm2

Gaius
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 04:05 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.