I'm new to Modula-2 and am trying to use the FST Modula-2 environment.
I have the compiler etc in C:\M2 with sub-folders \bin, \lib, \doc and
with the M2 and sub-folders on my PATH. I have set M2LIB = c:\m2\lib.
I tried to compile one of the sample programs in the \doc directory i.e. sieve.mod expectng it to be found using PATH but I get a 'File not
found' error and get dumped into an empty Editor screen.
Can anyone provide some assistance here please? Also what is the 'work module' in the compiler environment?
On 05/01/2021 23:53, Paul Richards wrote:
I'm new to Modula-2 and am trying to use the FST Modula-2 environment.
I have the compiler etc in C:\M2 with sub-folders \bin, \lib, \doc and
with the M2 and sub-folders on my PATH. I have set M2LIB = c:\m2\lib.
I tried to compile one of the sample programs in the \doc directory
i.e. sieve.mod expectng it to be found using PATH but I get a 'File
not found' error and get dumped into an empty Editor screen.
Can anyone provide some assistance here please? Also what is the 'work
module' in the compiler environment?
At a guess there are some other environment path variables need setting.
Will it compile if you explicitly give the full filename or put the sourcecode in the root directory?
You might find the XDS compiler easier to get started with although it
too is a little picky about where you put things for it to work.
On 6/01/2021 7:37 pm, Martin Brown wrote:
On 05/01/2021 23:53, Paul Richards wrote:Martin
I'm new to Modula-2 and am trying to use the FST Modula-2 environment.
I have the compiler etc in C:\M2 with sub-folders \bin, \lib, \doc
and with the M2 and sub-folders on my PATH. I have set M2LIB =
c:\m2\lib.
I tried to compile one of the sample programs in the \doc directory
i.e. sieve.mod expectng it to be found using PATH but I get a 'File
not found' error and get dumped into an empty Editor screen.
Can anyone provide some assistance here please? Also what is the
'work module' in the compiler environment?
At a guess there are some other environment path variables need setting.
Will it compile if you explicitly give the full filename or put the
sourcecode in the root directory?
You might find the XDS compiler easier to get started with although it
too is a little picky about where you put things for it to work.
Thanks for the reply. Had a look at the AUTOEXEC.BAT and there are
indeed extra environment variables some pointing to directories which
don't exist in my installation. I guess my installation is incorrect.
I also have TopSpeed Modula-2 on my PC. I have also set up a batch file
with paths to all the directories in my installation. Every time I try
and compile a simple program I get a 'File not found' message, the file
in question being TSMOD.DLL, which I know is in my c:\ts\sys directory.
As far as XDS is concerned I had that on my laptop many moons ago but no longer. It seems it isn't possible to acquire binaries of the system any longer.
On 07/01/2021 00:56, Paul Richards wrote:
On 6/01/2021 7:37 pm, Martin Brown wrote:
On 05/01/2021 23:53, Paul Richards wrote:Martin
I'm new to Modula-2 and am trying to use the FST Modula-2 environment. >>>>
I have the compiler etc in C:\M2 with sub-folders \bin, \lib, \doc
and with the M2 and sub-folders on my PATH. I have set M2LIB =
c:\m2\lib.
I tried to compile one of the sample programs in the \doc directory
i.e. sieve.mod expectng it to be found using PATH but I get a 'File
not found' error and get dumped into an empty Editor screen.
Can anyone provide some assistance here please? Also what is the
'work module' in the compiler environment?
At a guess there are some other environment path variables need setting. >>>
Will it compile if you explicitly give the full filename or put the
sourcecode in the root directory?
You might find the XDS compiler easier to get started with although
it too is a little picky about where you put things for it to work.
Thanks for the reply. Had a look at the AUTOEXEC.BAT and there are
indeed extra environment variables some pointing to directories which
don't exist in my installation. I guess my installation is incorrect.
Try creating the missing directories and put some sourcecode in them.
I also have TopSpeed Modula-2 on my PC. I have also set up a batch
file with paths to all the directories in my installation. Every time
I try and compile a simple program I get a 'File not found' message,
the file in question being TSMOD.DLL, which I know is in my c:\ts\sys
directory.
I have had just about every M2 compiler going at one time or another. I presume you have the TS MSDOS version (rather than OS/2). There should
be a readme file somewhere telling you what env variables need to be
set. I no longer have a working TS DOS setup so I can't test it here.
Might be TS_LIB or TS_SYS env variables need setting too. It is nearly
two decades since I last used that compiler in anger. I continue to use
the older original JPI M2 for longer because it was cute and small but
sort of abandonned that too when Win7 came along and didn't like its
16bit code and peeky pokey way IO to long since deceased graphics card.
As far as XDS is concerned I had that on my laptop many moons ago but
no longer. It seems it isn't possible to acquire binaries of the
system any longer.
That is a shame. It was a good compiler in its day and had some cute innovations like compiling an attempt to use an uninitialised variable
to a hard trap by default and various other tricks. It was one of the
first commercial compilers to use dataflow analysis to spot logic errors
in code at compile time. They even had a TS compatibility pack which
sort of worked up to a point- though it was like threading the eye of a needle for any project of a significant size. Of the available compilers
I think XDS was one of the nicest and in latter days it was free too.
You could try looking for it on the Wayback machine you might get lucky.
Thanks for the replies. I have actually found a v.2.51 of XDS on a
Belgian university site and it's now installed on my laptop. I shall persevere in my attempts to get the other compilers working.
Thanks again.
On Thursday, January 7, 2021 at 3:55:35 PM UTC-5, Paul Richards wrote:
Thanks for the replies. I have actually found a v.2.51 of XDS on a
Belgian university site and it's now installed on my laptop. I shall
persevere in my attempts to get the other compilers working.
Thanks again.
Also of note, the XDS Modula-2 GitHub repository at https://github.com/excelsior-oss/xds does contain binaries in the bin directory. Compiling from source is not required.
--Brian
I have all of those compilers and the manuals for Topspeed M2 so can help you to get it going once you have decided which one you prefer.
What are you hoping to do with the system once you get it going? That will help me to recommend the most appropriate.
Also are you running actual MS-DOS on a PC or using an emulator like DOSBox?
If you are running under Windows you would be better off using a compiler designed for use on Windows. I would recommend ADW Modula-2 which is a rebadged StonyBrook compiler:
https://www.modula2.org/adwm2/
Chris
On Thursday, January 7, 2021 at 3:55:35 PM UTC-5, Paul Richards
wrote:
Thanks for the replies. I have actually found a v.2.51 of XDS on a
Belgian university site and it's now installed on my laptop. I
shall persevere in my attempts to get the other compilers working.
Thanks again.
Also of note, the XDS Modula-2 GitHub repository at https://github.com/excelsior-oss/xds does contain binaries in the bin directory. Compiling from source is not required.
On 07/01/2021 22:19, Brian Knoblauch wrote:
Also of note, the XDS Modula-2 GitHub repository at https://github.com/excelsior-oss/xds does contain binaries in the bin directory. Compiling from source is not required.You have got me interested.
Is the compiler source for that actually available?
I'm just following an interest in various languages. Having programmed extensively in Borland Pascal I wanted to see what one of its
predecessors was like. I have FST and Topspeed installed under DOSBox-x.
The problems I'm having, as you will have noted, seem to be related to
the PATH and environment variables in that both compilers can't seem to
find certain files even if they are there.
I'll be trying to develop fairly simple programs at first but eventually
I want to look at random access files and their use.
Paul
On Friday, January 8, 2021 at 12:49:12 PM UTC+10:30, Paul Richards wrote:Debugger. Unfortunately, you would only be able to scratch the surface and not be able to get a full appreciation of the system without this. Personally, I wouldn't bother with FST except as a very simple introduction. It was very rudimentary. Another
I'm just following an interest in various languages. Having programmed
extensively in Borland Pascal I wanted to see what one of its
predecessors was like. I have FST and Topspeed installed under DOSBox-x.
The problems I'm having, as you will have noted, seem to be related to
the PATH and environment variables in that both compilers can't seem to
find certain files even if they are there.
I'll be trying to develop fairly simple programs at first but eventually
I want to look at random access files and their use.
Paul
OK - I see. I assume you mean 'successors' rather than 'predecessors'? The chronology / timeline of this family of languages is:
... ALGOL60 -> Pascal -> Modula-2 -> Oberon
Modula-2 cleaned up most of the syntactic quirks of Pascal.
In the Modula-2 era software was accompanied by extensive printed documentation and very little online. e.g the TopSpeed system came with more than 1000 pages in the form of a User's Manual, Language Tutorial, User Reference, Techkit and Visual
Regards,
Chris Burrows
CFB Software
https://www.cfbsoftware.com/modula2
For some reason I lost my privileges in this google group....
If looking for FST sources and how to go along, visit https://fruttenboel.verhoeven272.nl/modula-2/index.html
On Saturday, January 9, 2021 at 10:26:02 AM UTC+1, Fruttenboel wrote:
For some reason I lost my privileges in this google group....
If looking for FST sources and how to go along, visit https://fruttenboel.verhoeven272.nl/modula-2/index.htmlI still have an FST running in a DOS box on my Linux machine. FSTis a VERY decent compiler. It even has a builtin assembler.
AFAIR you only need to make sure the compiler is in the search path. This evening I will look things up and post them here. Don't lower yourself to the level of Logitech.
I have all of those compilers and the manuals for Topspeed M2 so can help you to get it going once you have decided which one you prefer.
What are you hoping to do with the system once you get it going? That will help me to recommend the most appropriate.
Also are you running actual MS-DOS on a PC or using an emulator like DOSBox?
If you are running under Windows you would be better off using a compiler designed for use on Windows. I would recommend ADW Modula-2 which is a rebadged StonyBrook compiler:
https://www.modula2.org/adwm2/
Chris
On 8/01/2021 8:08 am, Chris Burrows wrote:
I have all of those compilers and the manuals for Topspeed M2 so can
help you to get it going once you have decided which one you prefer.
What are you hoping to do with the system once you get it going? That
will help me to recommend the most appropriate.
Also are you running actual MS-DOS on a PC or using an emulator like
DOSBox?
If you are running under Windows you would be better off using a
compiler designed for use on Windows. I would recommend ADW Modula-2
which is a rebadged StonyBrook compiler:
https://www.modula2.org/adwm2/
Chris
Chris
Although I have successfully got the Logitech compiler working I would
still like try and use the Topspeed M2 system. Given that every time I
try and compile a program I get a "File not found" error (TSMOD.DLL) I
assume that I am missing the appropriate Environment variables (there
are certainly quite a number for Logitech.)
On Friday, January 8, 2021 at 12:49:12 PM UTC+10:30, Paul Richards
wrote:
I'm just following an interest in various languages. Having
programmed extensively in Borland Pascal I wanted to see what one
of its predecessors was like. I have FST and Topspeed installed
under DOSBox-x. The problems I'm having, as you will have noted,
seem to be related to the PATH and environment variables in that
both compilers can't seem to find certain files even if they are
there.
I'll be trying to develop fairly simple programs at first but
eventually I want to look at random access files and their use.
Paul
OK - I see. I assume you mean 'successors' rather than
'predecessors'? The chronology / timeline of this family of languages
is:
... ALGOL60 -> Pascal -> Modula-2 -> Oberon
Modula-2 cleaned up most of the syntactic quirks of Pascal.
In the Modula-2 era software was accompanied by extensive printed documentation and very little online. e.g the TopSpeed system came
with more than 1000 pages in the form of a User's Manual, Language
Tutorial, User Reference, Techkit and Visual Debugger. Unfortunately,
you would only be able to scratch the surface and not be able to get
a full appreciation of the system without this. Personally, I
wouldn't bother with FST except as a very simple introduction. It was
very rudimentary. Another system to look out for is Logitech
Modula-2, particularly version 3 if you want to run under MS-DOS.
They were amongst the original and were the kings for many years.
Their Visual Debugger was groundbreaking at the time. The full
manuals are available online from BitSavers and the like.
As was their PMD facility to find out exactly where and how a program
failed assuming that you had a copy of the release version and linker
map. I preferred JPI/Topspeed to Logitech though. Logitech was a 4 pass overlaid compiler but it was slow and as dumb as a rock for optimising
and any assembler code had to be entered in *HEX*.
--
Regards,
Martin Brown
On 2021-01-10 03:21, Paul Richards wrote:
On 8/01/2021 8:08 am, Chris Burrows wrote:
I have all of those compilers and the manuals for Topspeed M2 so can
help you to get it going once you have decided which one you prefer.
What are you hoping to do with the system once you get it going? That
will help me to recommend the most appropriate.
Also are you running actual MS-DOS on a PC or using an emulator like
DOSBox?
If you are running under Windows you would be better off using a
compiler designed for use on Windows. I would recommend ADW Modula-2
which is a rebadged StonyBrook compiler:
https://www.modula2.org/adwm2/
Chris
Chris
Although I have successfully got the Logitech compiler working I would
still like try and use the Topspeed M2 system. Given that every time I
try and compile a program I get a "File not found" error (TSMOD.DLL) I
assume that I am missing the appropriate Environment variables (there
are certainly quite a number for Logitech.)
IIRC, and it's been 25+ years since I worked for JPI, all you need is
the PATH to be set correctly.
What directory is the compiler installed into, and what does your PATH
look like?
Paul
Although I have successfully got the Logitech compiler working I would
still like try and use the Topspeed M2 system. Given that every time I
try and compile a program I get a "File not found" error (TSMOD.DLL) I
assume that I am missing the appropriate Environment variables (there
are certainly quite a number for Logitech.)
I've searched extensively on the web but that has not provided anything
so could you possibly have a look at the appropriate TS manual and maybe
let me know what Env variables I should set?
Thanks
Paul
predecessors was like. I have FST and Topspeed installed under DOSBox-x.
The problems I'm having, as you will have noted, seem to be related to
the PATH and environment variables in that both compilers can't seem to
find certain files even if they are there.
On Friday, January 8, 2021 at 12:49:12 PM UTC+10:30, Paul Richards wrote:try it on a proper MSDOS system? I don't have on problems on mine.
predecessors was like. I have FST and Topspeed installed under DOSBox-x.
The problems I'm having, as you will have noted, seem to be related to
the PATH and environment variables in that both compilers can't seem to
find certain files even if they are there.
I tried installing Toipspeed under DOSBox 0.74 but I can't even get past square one. When I run INSTALL it prompts me for a directory but everything I try (including the 'mounted' drives) results in an 'invalid target directory' error. Are you able to
Chris
I use DOSBox-x which opens on drive z:\. I have a directory structure c:\vdos\ts and I mount c c:\vdos - this then shows as c:\ with a
directory structure beneath. I put all the INSTALL programs in a
temporary directory c:\tsinst, load DOSBox-x which opens at the c:\
prompt, cd to c:\tsinst and hit INSTALL.EXE. Topspeed installs into
c:\ts (the default).
I don't have a native MS-DOS system just emulators or VMs.
On 11/01/2021 2:43 am, Paul Attryde wrote:
On 2021-01-10 03:21, Paul Richards wrote:
On 8/01/2021 8:08 am, Chris Burrows wrote:
I have all of those compilers and the manuals for Topspeed M2 so can
help you to get it going once you have decided which one you prefer.
What are you hoping to do with the system once you get it going?
That will help me to recommend the most appropriate.
Also are you running actual MS-DOS on a PC or using an emulator like
DOSBox?
If you are running under Windows you would be better off using a
compiler designed for use on Windows. I would recommend ADW Modula-2
which is a rebadged StonyBrook compiler:
https://www.modula2.org/adwm2/
Chris
Chris
Although I have successfully got the Logitech compiler working I
would still like try and use the Topspeed M2 system. Given that every
time I try and compile a program I get a "File not found" error
(TSMOD.DLL) I assume that I am missing the appropriate Environment
variables (there are certainly quite a number for Logitech.)
IIRC, and it's been 25+ years since I worked for JPI, all you need is
the PATH to be set correctly.
What directory is the compiler installed into, and what does your PATH
look like?
Paul
Paul
It's in C:\TS and to launch it I run a batch file with the following entries:
path=c:\ts\xtd_sys;c:\ts\sys;c:\ts\exp;c:\ts\include;c:\ts\examples;c:\ts\lib;c:\ts\pr;
On Monday, January 11, 2021 at 11:31:35 AM UTC+10:30, Paul Richards wrote:
I use DOSBox-x which opens on drive z:\. I have a directory structure c:\vdos\ts and I mount c c:\vdos - this then shows as c:\ with a
directory structure beneath. I put all the INSTALL programs in a
temporary directory c:\tsinst, load DOSBox-x which opens at the c:\
prompt, cd to c:\tsinst and hit INSTALL.EXE. Topspeed installs into
c:\ts (the default).
I don't have a native MS-DOS system just emulators or VMs.
OK - I did something similar to that and it now installs OK. I installed into C:\TS which is mapped to D:\vdos\TS and it compiles PROG1.MOD (Hello) OK.
I installed the 'real mode' version of the compiler. I don't have a PATH variable set. I change directory to TS\SYS before I run TS.exe.
I hope this helps,
Chris
On Monday, January 11, 2021 at 8:57:03 PM UTC+10:30, Chris Burrows wrote:
On Monday, January 11, 2021 at 11:31:35 AM UTC+10:30, Paul Richards wrote: >>
OK - I did something similar to that and it now installs OK. I installed into C:\TS which is mapped to D:\vdos\TS and it compiles PROG1.MOD (Hello) OK.I use DOSBox-x which opens on drive z:\. I have a directory structure
c:\vdos\ts and I mount c c:\vdos - this then shows as c:\ with a
directory structure beneath. I put all the INSTALL programs in a
temporary directory c:\tsinst, load DOSBox-x which opens at the c:\
prompt, cd to c:\tsinst and hit INSTALL.EXE. Topspeed installs into
c:\ts (the default).
I don't have a native MS-DOS system just emulators or VMs.
I installed the 'real mode' version of the compiler. I don't have a PATH variable set. I change directory to TS\SYS before I run TS.exe.
I hope this helps,
Chris
I ran some more tests:
I'm using DOSBox 0.74 and the DOS Release 3.1 of TopSpeed Modula-2 from Clarion Software Corporation. I've now successfully run it from a batch file located in a different folder with just the following lines:
path=c:\ts\sys
ts
TSMOD.DLL should be put into the same directory as TS.EXE by INSTALL. I tried running INSTALL again with the default options and it didn't even install TS.EXE!
I then ran INSTALL again with a minimal number of changes to the options:
I set 'DOS Environment Files' to YES and OS2 Target System to NO.
It shows that v3.1 of the Modula-2 development system has been installed and didn't say anything about the AUTOEXEC.BAT file (that was in the manual!). I suggest you delete your TS directory and run INSTALL again with these two options set.
To compile the example I start TS and then select the file PROG1.MOD using Files > Pick File and navigate to the TS\EXAMPLES directory to locate it.
I then press F10 to get to the main menu, C for compile and voila! it compiles.
Chris
On 2021-01-10 15:18, Paul Richards wrote:
On 11/01/2021 2:43 am, Paul Attryde wrote:
On 2021-01-10 03:21, Paul Richards wrote:
On 8/01/2021 8:08 am, Chris Burrows wrote:
I have all of those compilers and the manuals for Topspeed M2 so
can help you to get it going once you have decided which one you
prefer.
What are you hoping to do with the system once you get it going?
That will help me to recommend the most appropriate.
Also are you running actual MS-DOS on a PC or using an emulator
like DOSBox?
If you are running under Windows you would be better off using a
compiler designed for use on Windows. I would recommend ADW
Modula-2 which is a rebadged StonyBrook compiler:
https://www.modula2.org/adwm2/
Chris
Chris
Although I have successfully got the Logitech compiler working I
would still like try and use the Topspeed M2 system. Given that
every time I try and compile a program I get a "File not found"
error (TSMOD.DLL) I assume that I am missing the appropriate
Environment variables (there are certainly quite a number for
Logitech.)
IIRC, and it's been 25+ years since I worked for JPI, all you need is
the PATH to be set correctly.
What directory is the compiler installed into, and what does your
PATH look like?
Paul
Paul
It's in C:\TS and to launch it I run a batch file with the following
entries:
path=c:\ts\xtd_sys;c:\ts\sys;c:\ts\exp;c:\ts\include;c:\ts\examples;c:\ts\lib;c:\ts\pr;
Do you have an OS2_SYS directory?
In theory you only need c:\ts\xtd_sys, c:\ts\sys & c:\ts\os2_sys in the
path, I just can't remember the order.
But a new install from scratch should set them correctly.
As Chris says, for everything else you use the .red file, so you can
take all of the other folders out of the path since they won't be used.
Paul
On Friday, January 8, 2021 at 4:39:14 AM UTC-5, Martin Brown wrote:
On 07/01/2021 22:19, Brian Knoblauch wrote:
Also of note, the XDS Modula-2 GitHub repository atYou have got me interested.
https://github.com/excelsior-oss/xds does contain binaries in the
bin directory. Compiling from source is not required.
Is the compiler source for that actually available?
Appears to be complete as there are extensive source files in the
repository and has instructions to build from source with
NASM/MinGW/Visual Studio Community. However, I made only one quick
(and unsuccessful) attempt at a source build before I realized the
included binaries were complete and continued on with my actual
project at the time. A quick travel through some of the directories
and it seems it is primarily written in Oberon-2.
On 9/01/2021 6:55 am, Chris Burrows wrote:
On Friday, January 8, 2021 at 12:49:12 PM UTC+10:30, Paul Richards wrote:
I'm just following an interest in various languages. Having programmed
extensively in Borland Pascal I wanted to see what one of its
predecessors was like.
OK - I see. I assume you mean 'successors' rather than 'predecessors'? The chronology / timeline of this family of languages is:
... ALGOL60 -> Pascal -> Modula-2 -> Oberon
Modula-2 cleaned up most of the syntactic quirks of Pascal.
I didn't express myself very well - I meant that by the time Borland had developed up to version 7 of their Pascal they had incorporated some of Modula-2's features like separate compilation of what they called Units
as opposed to compiling monolithic programs.
BTW: IIRC units appeared in Turbo Pascal 3 (definitely much
earlier than version 7, I used them in Turbo Pascal 5).
Paul Richards <paulri...@iinet.net.au> wrote:
On 9/01/2021 6:55 am, Chris Burrows wrote:
On Friday, January 8, 2021 at 12:49:12 PM UTC+10:30, Paul Richards wrote:
I'm just following an interest in various languages. Having programmed >> extensively in Borland Pascal I wanted to see what one of its
predecessors was like.
OK - I see. I assume you mean 'successors' rather than 'predecessors'? The chronology / timeline of this family of languages is:
... ALGOL60 -> Pascal -> Modula-2 -> Oberon
Modula-2 cleaned up most of the syntactic quirks of Pascal.
I didn't express myself very well - I meant that by the time Borland had developed up to version 7 of their Pascal they had incorporated some of Modula-2's features like separate compilation of what they called UnitsUnits are UCSD Pascal feature. AFAIK history here is:
as opposed to compiling monolithic programs.
UCSD Pascal -> Turbo Pascal/
Mesa
\
Modula -> Modula 2
During stay in US Wirth learned about Mesa and modules, and
included them in Modula. This was parallel to developement
of UCSD Pascal. Modules appeared also in CLU, which seem to
be parallel to Mesa (but it seem that CLU compiler is lost).
BTW: IIRC units appeared in Turbo Pascal 3 (definitely much
earlier than version 7, I used them in Turbo Pascal 5).
--
Waldek Hebisch
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 468 |
Nodes: | 16 (2 / 14) |
Uptime: | 11:57:46 |
Calls: | 9,440 |
Calls today: | 3 |
Files: | 13,591 |
Messages: | 6,109,368 |