<div dir="ltr"><div dir="ltr">On Fri, Jul 12, 2024 at 12:23 PM John R Levine <<a href="mailto:johnl@taugh.com">johnl@taugh.com</a>> wrote:</div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Thu, 11 Jul 2024, Paul Winalski wrote:<br>
> Yes, that was precisely my point, and thank you for stating it more clearly<br>
> and concisely than I did. The VAX MACRO compiler takes in VAX assembly<br>
> source code, not binary VAX instructions.<br>
<br>
Does anyone know how extensively they used the macro facilities? You can <br>
write much higher level stuff as macros than as single instructions, which <br>
makes it a lot easier to do efficient translation. For example, on OS/360 <br>
you'd write a GET macro to retrieve the next record (or a pointer to it) <br>
from a file, which was a lot easier to figure out than the control blocks <br>
and subroutine calls the macros expanded into.<br>
<br></blockquote><div>Macros were used very extensively in VAX MACRO, both for user programming and in the operating system. All of the low-level system calls for user programs were implemented and documented as macros. The OS assembly code made heavy use of macros as well.</div><div><br></div><div>Outside the VAX/VMS development group, BLISS was DEC's standard implementation language. In the development organizations I worked in (software development tools and compilers), we did almost zero programming in assembly code. The only assembly-level programming I ever did was the innermost loop of my VAX/VMS Mandelbrot set program and a device driver to implement Unix-style pipes on VMS. I did the latter in assembly code only because there was no documented HLL interface for writing VAX/VMS device drivers.</div><div><br></div><div>As Clem Cole observed, Dave Cutler hated BLISS with a passion. All of his work on the VAX/VMS operating system was in assembly code. Because of this there is still a large amount of OpenVMS still written in VAX MACRO. But the RMS (Record Management Services, the VMS file system user interface) group wrote all of their code in BLISS.<br></div><div><br></div><div>After leaving the VMS group Dave went on to design and implement a common compiler back end for VAX, the VAX Code Generator (VCG), which was the optimizer and back end for VAX PL/I, VAX C, and VAX Ada. The earlier generations of VAX/VMS compilers (VAX Fortran, VAX Pascal, VAX COBOL) each had their own back ends. Cutler later did get HLL religion. His real-time operating system for the VAX, VAXeln, was written almost entirely in Pascal.</div><div><br></div><div>-Paul W.<br></div></div></div>