[COFF] ancient macros, machine code translation, as mental architecture models

Paul Winalski paul.winalski at gmail.com
Tue Jul 16 00:09:15 AEST 2024


On Sun, Jul 14, 2024 at 9:44 PM Aron Insinga <aki at insinga.com> wrote:

> I think that this may be (at least as far as any of us know) a unique case
> from the early days of computing where, on the TX-0 and a port to the
> PDP-1, a macro body *is* stored as a list of 'machine words' instead of
> source text.  The macro  body is not manipulated as a 'higher-level
> construct', it is just used for quite limited macro expansion.
>

Thanks for clearing this up.  I think you're right that this is a unique
case.  All assemblers I've ever dealt with expanded macros into text that
was then fed to the assember's parser just as if it were ordinary source
program text.  On a machine with limited memory it makes sense not to have
to re-parse the expanded source after macro expansion, but instead to do
the translation on the fly.  It saves a second pass over the expanded macro
call.

-Paul W.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.tuhs.org/pipermail/coff/attachments/20240715/683d90ab/attachment-0001.htm>


More information about the COFF mailing list