From: "John Levine" <johnl@taugh.com>
To: coff@tuhs.org
Cc: douglas.mcilroy@dartmouth.edu
Subject: [COFF] Re: ancient macros, machine code translation,as mental architecture models
Date: 15 Jul 2024 15:39:16 -0400 [thread overview]
Message-ID: <20240715193917.5828C8F9FBE0@ary.qy> (raw)
In-Reply-To: <CAKH6PiVb58TJ=5MuR_C_GQpb0hVfAoyFLEJJq2v9X11oi3dP8A@mail.gmail.com>
It appears that Douglas McIlroy <douglas.mcilroy@dartmouth.edu> said:
>In 1959, ...
>We never considered anything but recursive expansion, where macro
>definitions can contain macro calls; thus the TX-0 model comes as quite a
>surprise. We kept a modest stack of the state of each active macro
>expansion. We certainly did not foresee that within a few years some
>applications would need a 70-level stack!
As the PDP-1 Macro imeplementation manual said about the macro feature:
It is the weakest
in that it is quite inflexible and does not incorporate any of the more significant improvements
in assembler technology that have occurred since the logic was first written in 1957.
The PDP-1 was not a very big machine, only 4K words and the only
standard I/O device was paper tape, so no overlays or multiple passes.
I can imagine that while they knew how to write a better macro
processor, they didn't want to use up the memory it would have needed.
Bitsavers has a bunch of memos about the TX-0.
Memo 39 describes TX-0 assembler as of 1962, which had real macros
that could insert arbitrary strings, as they show in an example on
pages 10-11.
https://bitsavers.org/pdf/mit/tx-0/memos/M-5001-39_MIDAS_Nov62.pdf
There are earlier memos about MACRO in 1959 and 1961 which suggest a weaker
macro facility but don't have details.
R's,
John
next prev parent reply other threads:[~2024-07-15 19:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-15 12:37 Douglas McIlroy
2024-07-15 14:26 ` Paul Winalski
2024-07-15 14:38 ` Bakul Shah via COFF
2024-07-15 19:39 ` John Levine [this message]
2024-07-16 19:55 ` Aron Insinga
2024-07-16 20:09 ` Aron Insinga
2024-07-17 17:00 ` [COFF] Re: ancient macros Aron Insinga
-- strict thread matches above, loose matches on Subject: below --
2024-07-13 23:46 [COFF] Re: machine code translation,as mental architecture models John Levine
2024-07-13 22:00 ` Douglas McIlroy
2024-07-14 0:56 ` Aron Insinga
2024-07-14 18:02 ` [COFF] Re: ancient macros, " John Levine
2024-07-15 1:44 ` Aron Insinga
2024-07-15 14:09 ` Paul Winalski
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240715193917.5828C8F9FBE0@ary.qy \
--to=johnl@taugh.com \
--cc=coff@tuhs.org \
--cc=douglas.mcilroy@dartmouth.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).