Discussion:
What compilers are we using
(too old to reply)
Rob Solomon
2009-02-15 15:30:26 UTC
Permalink
Since it seems that no one but me is using the Stony Brook debugger, I
would like to know.

What Modula-2 compiler are people using?

How are you debugging your code?


I know Modula-2 code does not need much debugging, but it does need
some :-)

Thanks,
Rob Solomon
Rainard Buchmann
2009-02-15 15:58:30 UTC
Permalink
Hi Rob,

yes - I'm using Stony Brook since 20 years for many and big projects,
compiling and debugging (yes - sometimes it's useful even in Modula-2)
nowadays under WinXP.

In my projects the debugger is working 100% correctly.

Sorry - your question cannot be answered because the codefragment
you have posted is too much cut down.

you wrote :


MODULE TEST;
IMPORT Terminal;

PROCEDURE doit;
VAR
filter : STRTYP;
c : CARDINAL;
INFNAM : BUFTYP;
FLAG,stop : BOOLEAN;
BEGIN
Terminal.Reset;
more code here

END doit;

BEGIN
doit;
END FTEST8.


There is nothing compilable, beginning with unknown type 'STRTYP'
until wrong Modulname 'FTEST8' at the end - so what are you
expecting as answer ?

May be that there are circumstances where the debugger crashes,
but when ?

Rainard
Post by Rob Solomon
Since it seems that no one but me is using the Stony Brook debugger, I
would like to know.
What Modula-2 compiler are people using?
How are you debugging your code?
I know Modula-2 code does not need much debugging, but it does need
some :-)
Thanks,
Rob Solomon
Rob Solomon
2009-02-16 20:57:10 UTC
Permalink
I think I found the answer to my orig question. It is probably that
something is being injected into the address space of the debugger.
When I run in a virtual machine (VMware) with very little else
installed, I have no problems. I have virtual machines for WinXP and
Win2K, which both work for Stony Brook's debugger.

The code fragment below does not work in the debugger when run on my
main WinXP SP3 box, but I have no trouble on the virtual versions. I
guess I oversimplified the code fragment. No matter, I think I
figured the problem out.

--rob
Post by Rainard Buchmann
Hi Rob,
yes - I'm using Stony Brook since 20 years for many and big projects,
compiling and debugging (yes - sometimes it's useful even in Modula-2)
nowadays under WinXP.
In my projects the debugger is working 100% correctly.
Sorry - your question cannot be answered because the codefragment
you have posted is too much cut down.
MODULE TEST;
IMPORT Terminal;
PROCEDURE doit;
VAR
filter : STRTYP;
c : CARDINAL;
INFNAM : BUFTYP;
FLAG,stop : BOOLEAN;
BEGIN
Terminal.Reset;
more code here
END doit;
BEGIN
doit;
END FTEST8.
There is nothing compilable, beginning with unknown type 'STRTYP'
until wrong Modulname 'FTEST8' at the end - so what are you
expecting as answer ?
May be that there are circumstances where the debugger crashes,
but when ?
Rainard
Post by Rob Solomon
Since it seems that no one but me is using the Stony Brook debugger, I
would like to know.
What Modula-2 compiler are people using?
How are you debugging your code?
I know Modula-2 code does not need much debugging, but it does need
some :-)
Thanks,
Rob Solomon
Jürgen Lerch
2009-02-15 22:14:31 UTC
Permalink
Saluton!
Post by Rob Solomon
What Modula-2 compiler are people using?
I'm using M2Amiga on my (more or less) trusty old A4000,
and gm2 on my Linux box.
Post by Rob Solomon
How are you debugging your code?
For M2Amiga I have the corresponding post mortem debugger,
for gm2 I fiddled around with gdb, rather less than more
successfully. Also using lots of good old Write* statements.

Ad Astra!
JuL
--
***@gmx.de / Never anger a dragon, for you will be
Jürgen ,,JuL'' Lerch / crunchy and taste good with ketchup
g***@netscape.net
2009-02-19 21:42:38 UTC
Permalink
Post by Rob Solomon
What Modula-2 compiler are people using?
First for the Amiga TDI, then M2Amiga and after that for PC
first JPI TopSpeed 6-7 years and the last 12 years or so
Stonybrook (many hours per day).
Georg Lokowandt
2009-02-24 11:52:19 UTC
Permalink
gpm on a old linux installation, running in a virtual machine. Debugging
with DDD frontend to gdb. I'm planning to switch to gm2 in the near future.
Regards, Georg
Post by Rob Solomon
Since it seems that no one but me is using the Stony Brook debugger, I
would like to know.
What Modula-2 compiler are people using?
How are you debugging your code?
I know Modula-2 code does not need much debugging, but it does need
some :-)
Thanks,
Rob Solomon
Andreas F. Borchert
2009-02-26 13:45:33 UTC
Permalink
Post by Rob Solomon
What Modula-2 compiler are people using?
Our own Modula-2 system, see http://www.mathematik.uni-ulm.de/modula/.
Post by Rob Solomon
How are you debugging your code?
Using adb(1) under UNIX. We had a Modula-2 debugger called mdb in earlier
times but this beast was never ported to the Solaris/SPARC platform.

Andreas.
Terry Ross
2009-05-20 00:41:38 UTC
Permalink
Post by Rob Solomon
Since it seems that no one but me is using the Stony Brook debugger, I
would like to know.
What Modula-2 compiler are people using?
How are you debugging your code?
I know Modula-2 code does not need much debugging, but it does need some
:-)
Thanks,
Rob Solomon
Hi Rob,

I generally just debug mine manually.

I'm using TDI and Megamax on my Atari STs and Atari TTs, XDS and GM2 and
sometimes Mocka on Linux, and a little ACK on Minix.

Terry
--
Terry "qnr" Ross | http://www.aliboom.com
1024D/E5796C4D | Key BE84 EC1D FC94 D97B 9063 AD15 0F38 193A E579 6C4D
Source Mage GNU/Linux http://www.sourcemage.org
Jürgen Lerch
2009-05-20 05:08:30 UTC
Permalink
Saluton!
Post by Terry Ross
I'm using TDI and Megamax on my Atari STs and Atari TTs, XDS and GM2 and
sometimes Mocka on Linux, and a little ACK on Minix.
Ah, someone else who uses old machines (even if it's only a
lowly Atarian ;-) ;-)).

Ad Astra!
JuL
--
***@gmx.de / L'état, c'est toi. (Moi)
Jürgen ,,JuL'' Lerch /
Terry Ross
2009-05-20 15:22:35 UTC
Permalink
Post by Jürgen Lerch
Saluton!
Post by Terry Ross
I'm using TDI and Megamax on my Atari STs and Atari TTs, XDS and GM2
and sometimes Mocka on Linux, and a little ACK on Minix.
Ah, someone else who uses old machines (even if it's only a lowly
Atarian ;-) ;-)).
Ad Astra!
JuL
Hi :)

Actually, I have Amigas too (though they're currently in storage) -
Interestingly enough, I never tried TDI on them.

Terry
--
Terry "qnr" Ross | http://www.aliboom.com
1024D/E5796C4D | Key BE84 EC1D FC94 D97B 9063 AD15 0F38 193A E579 6C4D
Source Mage GNU/Linux http://www.sourcemage.org
Jürgen Lerch
2009-05-31 23:53:36 UTC
Permalink
Saluton!
Post by Terry Ross
Post by Jürgen Lerch
Post by Terry Ross
I'm using TDI and Megamax on my Atari STs and Atari TTs, XDS and GM2
and sometimes Mocka on Linux, and a little ACK on Minix.
Ah, someone else who uses old machines (even if it's only a lowly
Atarian ;-) ;-)).
Actually, I have Amigas too (though they're currently in storage) -
Interestingly enough, I never tried TDI on them.
Interestingly enough, neither did I. As I said, mainly
(by _far_) M2Amiga. I only tried Cyclone (a somewhat
extended Modula-2), but that seems not to work anymore
with OS 3.5 (compiles, but doesn't run).

Ad Astra!
JuL
--
***@gmx.de / Work like you don't need the money
Jürgen ,,JuL'' Lerch / Dance like no one was watching
/ Love like you've never been hurt
/ - ?
tbreeden
2009-07-06 18:07:28 UTC
Permalink
Post by Terry Ross
Actually, I have Amigas too (though they're currently in storage) -
Nor is Modula-2 totally dead on Amiga. The Belgian company Hyperion
has done good things with releasing AmigaOS 4 and 4.1 for the PPC
platform. It is now on at least three PPC boards (no thanks to Amiga,
Inc), and may yet have a future.

At any rate, I've built an M2 compiler (over the years...) that now
runs on the 4.x AmigaOS (and finally compiles itself).

It might make more sense to try to get GNU M2 running on AmigaOS now,
but ANL (Amiga's Not Linux) and I suspect it might be quite a struggle
working with older versions of gcc than active GNU M2 work is using.

regards,

Tom
http://home.ntelos.net/~tbreeden/
Christoph Schlegel
2009-07-06 23:23:13 UTC
Permalink
Post by tbreeden
Post by Terry Ross
Actually, I have Amigas too (though they're currently in storage) -
Nor is Modula-2 totally dead on Amiga. The Belgian company Hyperion
has done good things with releasing AmigaOS 4 and 4.1 for the PPC
platform. It is now on at least three PPC boards (no thanks to Amiga,
Inc), and may yet have a future.
At any rate, I've built an M2 compiler (over the years...) that now
runs on the 4.x AmigaOS (and finally compiles itself).
It might make more sense to try to get GNU M2 running on AmigaOS now,
but ANL (Amiga's Not Linux) and I suspect it might be quite a struggle
working with older versions of gcc than active GNU M2 work is using.
regards,
Tom
http://home.ntelos.net/~tbreeden/
How did you implement the compiler? Is it Amiga-specific or did you use
the GNU tools? I am asking thinking of portability...
tbreeden
2009-07-07 15:00:55 UTC
Permalink
Post by Christoph Schlegel
How did you implement the compiler? Is it Amiga-specific or did you use
the GNU tools? I am asking thinking of portability...
The compiler was bootstrapped on an M68K Amiga M2 compiler, but now it
is able to compile itself.

The front end produces an intermediate code of my own, naive, design,
relatively high level.
Some basic optimization is run on the IC.
The back end writes out a PPC assembly code file that is accepted by
GNU "as", and executable produced
by "ld".

Object files are in an Elf format. PPC procedure calls follow a
standard Sys V document PPC addendum
from IBM. The compiler's back end "hides" open array size parameters
in the stack frame in such a way
that linking with C obj files is possible.

The Amiga OS4 SDK from Hyperion is a customized distribution of the
GNU Tools. As I understand it, the
most significant changes they made are in "ld", since the Amiga loader
needs to support the delay of
address assignment until load time.

regards,

Tom
http://home.ntelos.net/~tbreeden/

Loading...