Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Old Fortran Question

JohnNichols
Valued Contributor III
691 Views

SENSE LIGHT 1 

IN the original Fortran there is the command SENSE LIGHT 1 to 5.  

So if you are looking for the flow of the program these lights provide a simple method.  Of course now we debug or use write statements.  

When did the SENSE LIGHT commands leave Fortran?

0 Kudos
1 Solution
Steve_Lionel
Honored Contributor III
676 Views

SENSE did not make it into FORTRAN IV (FORTRAN 66), the first standard. It was in the original IBM compilers for the 704/7090, etc.

View solution in original post

0 Kudos
4 Replies
Steve_Lionel
Honored Contributor III
677 Views

SENSE did not make it into FORTRAN IV (FORTRAN 66), the first standard. It was in the original IBM compilers for the 704/7090, etc.

0 Kudos
JohnNichols
Valued Contributor III
670 Views

It was a pretty good idea, you could get your program to output morse code on the lights and follow without all those blasted write Statements. 

Bring back the sense.

0 Kudos
mecej4
Honored Contributor III
650 Views

A monochrome sense light represents a single bit, so three sense lights gave you the equivalent of a WRITE with an I/O list that could be no longer than three bits.

Since there was no timesharing on those old monsters, a normal user (not the operator) would never see a sense light that was on for a few moments several hours earlier. 

Similarly for sense switches as input devices to control execution.

0 Kudos
cryptogram
New Contributor I
625 Views

Early versions of Fortran sometimes had odd, and sometimes machine specific, keywords.

 

Fortran on the 1960's vintage IBM 1620, had device specific I/O statements like ACCEPT for the keyboard, PUNCH to write to a card on the card reader/punch.   The machine included 4 toggle switches whose status you could test in a Fortran II program using a special IF statement that included  SENSE SWITCH in one way or another.  Seems like we used it to come up with a seed for random number generation by having a loop that incremented a variable until the user flipped one of the toggle switches.

 

 

0 Kudos
Reply