drforbin / decwar

Historic decwar fortran IV code which has been modified to run on simh (standard tops10 system)
GNU General Public License v3.0
16 stars 2 forks source link

step four up next - compiling decwar! #8

Open statespacedev opened 2 months ago

statespacedev commented 2 months ago

with kermit rolling and files copied over from raspi side to tops10 side, time this weekend to start digging into merlyn's instructions for compiling, from the file 'changes' in the repo. exciting! here those are as prep. going to try walking through step by step.

to compile unpack all files in directory, preferably a SFD (sub file directory).
and do the following

compile @com1
compile @com2

This should compile ALL files without any (note WARMAC.MAC) errors.
The compiler should issue 3 warnings for WARMAC. These warnings are understood and will be fixed. There should also be some "Possible index modified in DO loop" warnings.
Ignore these.
They should not affect anything. 
This will compile each file into a *.REL file (relocatable file).

next,

r link
@can1

You should get an EXIT.
than.

get decwar
ssave

than create p,pn [1,27] and install 
DECWAR.EXE
DECWAR.GRP
DECWAR.HLP 
DECWAR.NWS

in that p,pn

than path [1,27]
run decwar
statespacedev commented 2 months ago

pushing some notes from the learnings over the weekend, got into some good stuff around fortran versions, which is part of the whole idea - good preparation for tackling linpack style stuff on tops-10!:)

hi lars - @larsbrinkhoff - got some good info from some of your discussions around its and dec fortran, thanks for that!:) here's nutshell, pulled from the link that follows

learnings around fortran versions

.r fortra
*^C
.version
FORTRA 6(1144) + 
.r fortra
*/h
FORTRA.HLP -- HELP file for FORTRAN-10 version 6      December 1981

tape files at https://pdp-10.trailing-edge.com/
FORTRAN-10 V6.0 1981 3.52 Mbyte 385
FORTRAN-10_V7wLink_Feb83 4.96 Mbyte 502
Fortran-10 Version 11 5.54 Mbyte 432

https://github.com/PDP-10/its/issues/170#issuecomment-414909112 philbudne commented on Aug 22, 2018 F10/FORTRA (FORTRAN-10) was FORTRAN-IV (FORTRAN 66) until version 7, which supported the FORTRAN-77 standard. I seem to recall finding version 1 of F10 in ITS' DECSYS directory. I can't IMAGINE anyone ever running v7 on ITS, and I wouldn't be shocked if it used TOP-10 monitor calls not supported by DECUUO.

current pic is that we're on dec fortran-10 v6 from 1981, which makes sense historically for decwar. this means a dec superset of fortran IV / f66. it meets the f66 ansi standard, and has dec extensions. we know for a fact that v5 did the same and already had the 'include' statement. highly likely that 'include' is one of the dec extensions to f66! here's a nutshell of current learnings for decwar context
dec fortran-10 v5, 1977, fortran iv / f66, plus dec extensions
dec fortran-10 v6, 1981, fortran iv / f66, plus dec extensions
dec fortran-10 v7, 1983, f77, ?plus dec extensions, !probly!?

https://github.com/drforbin/decwar/blob/docs/docs/sec4-compiling-decwar.md

statespacedev commented 2 months ago

yes!!! wootwoot! got a successful build, gotta celebrate a little bit!:) @drforbin

will post a full report this weekend, meanwhile here's the big breakthrough. troubles with fortran continuation lines and kermit. solved! https://github.com/drforbin/decwar/blob/docs/docs/sec4b-continuation-line-issue.md