From: shoppa@alph02.triumf.ca (Tim Shoppa)
Subject: Re: Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA *
Date: 1998/09/09 [thread overview]
Message-ID: <6t4h4d$mo4$1@nntp.ucs.ubc.ca> (raw)
In-Reply-To: 6t4cui$hfu@espresso.cafe.net
In article <6t4cui$hfu@espresso.cafe.net>, Kaz Kylheku <kaz@cafe.net> wrote:
>In article <6t4dca$k0h$1@nntp.ucs.ubc.ca>,
>Tim Shoppa <shoppa@alph02.triumf.ca> wrote:
>>Are you going to tell me that null-terminated strings are a "feature"
>>of the PDP-11 instruction set because there's a MACRO-11 directive
>>that creates them?
>
>No; what I would say that null terminated strings are a feature of your
>MACRO-11 assembly language.
Are you sure you want to say that? I'd call them a feature of the
PDP-11 instruction set before I called them a feature of MACRO-11, but
as Jordan points out we haven't yet defined "feature". Personally,
I'd say that a "feature" is something that is consciously designed in
at a given level; if higher-level tools take advantage of that lower-level
feature, I'd call it a "commonly used shortcut".
For example, if in PDP-11 assembler I want to move a string
pointed to by R2 to an area pointed to by R3, I just say:
LOOP: MOVB (R2)+,(R3)+
BNE LOOP
If I tried to do this any other way - say by prepending the string length,
or by appending a FF or a '$' - the code gets longer (though not
necessarily slower...)
Not surprisingly, the C code gets longer if you use a different terminator,
too :-)
C's notation *and* commonly used shortcuts are incredibly strongly tied
to the PDP-11 instruction set, addressing modes, and branch conditions.
And these are incredibly strongly tied to minicomputer technology in
the late 60's/early 70's, which is strongly tied to TI's 7400
series logic. How far back does the "feature" stop and the "commonly
used shortcut" begin?
Tim.
next prev parent reply other threads:[~1998-09-09 4:00 UTC|newest]
Thread overview: 69+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <0095000017115526000002L062*@MHS>
[not found] ` <35E04DF1.1911@world.std.com>
[not found] ` <35E09E76.6773@earthlink.net>
1998-08-23 4:00 ` Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA * Terry C. Shannon
1998-08-23 4:00 ` Glenn C. Everhart
1998-08-24 4:00 ` Paul Sture
1998-08-25 4:00 ` Gregg E Economou
1998-08-25 4:00 ` John Wilson
1998-08-26 4:00 ` Gregg E Economou
1998-08-27 4:00 ` John Wilson
1998-08-25 4:00 ` Jordan Henderson
1998-08-26 4:00 ` Bob Koehler
[not found] ` <6s910k$2bo$1@Starbase.NeoSoft.COM>
1998-08-29 4:00 ` Gregg E Economou
1998-08-30 4:00 ` Jay Maynard
[not found] ` <35e833be.0@news.wizvax.net>
1998-08-29 4:00 ` Jordan Henderson
1998-08-30 4:00 ` John Wilson
1998-08-30 4:00 ` JF Mezei
1998-08-30 4:00 ` Chris Torek
1998-08-31 4:00 ` Gregg E Economou
1998-08-31 4:00 ` Chris Torek
1998-08-30 4:00 ` Lawrence Kirby
1998-08-30 4:00 ` JF Mezei
1998-08-30 4:00 ` Martin Ambuhl
[not found] ` <6scur7$qtk@bgtnsc02.wo <35EA0E22.C59E9476@videotron.ca>
1998-08-31 4:00 ` Will Rose
1998-08-31 4:00 ` Michael Rubenstein
1998-08-31 4:00 ` Craig Franck
1998-08-30 4:00 ` JF Mezei
1998-08-31 4:00 ` firewind
1998-09-04 4:00 ` Thor Lancelot Simon
1998-08-30 4:00 ` Gregg E Economou
1998-08-30 4:00 ` K&R fight over ketchup (was: Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA ) Clint Comes
1998-08-31 4:00 ` Bob Koehler
1998-09-05 4:00 ` Gregg E Economou
1998-09-05 4:00 ` Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA * Peter da Silva
1998-09-05 4:00 ` Jordan Henderson
1998-09-07 4:00 ` Peter da Silva
1998-09-07 4:00 ` Jordan Henderson
1998-09-07 4:00 ` Peter da Silva
1998-09-07 4:00 ` Jordan Henderson
1998-09-08 4:00 ` Peter da Silva
1998-09-08 4:00 ` Peter da Silva
[not found] ` <6t2im5$mke@espresso.cafe.net>
1998-09-08 4:00 ` Peter da Silva
1998-09-08 4:00 ` Tim Shoppa
[not found] ` <6t4cui$hfu@espresso.cafe.net>
1998-09-09 4:00 ` Tim Shoppa [this message]
1998-09-08 4:00 ` JF Mezei
1998-09-09 4:00 ` Dan Pop
1998-09-09 4:00 ` Peter da Silva
1998-09-08 4:00 ` JF Mezei
1998-09-08 4:00 ` Dan Pop
1998-09-08 4:00 ` Peter da Silva
1998-09-08 4:00 ` Dan Pop
1998-09-07 4:00 ` Dan Pop
1998-09-07 4:00 ` Richard Stamp
1998-08-26 4:00 ` Paul Sture
1998-08-27 4:00 ` Gregg E Economou
1998-08-28 4:00 ` Paul Sture
1998-08-26 4:00 ` Bob Koehler
1998-08-27 4:00 ` Peter da Silva
1998-08-31 4:00 ` Boris
1998-08-27 4:00 ` Thor Lancelot Simon
1998-08-28 4:00 ` TERENCE MURPHY
1998-08-28 4:00 ` Greg Thomas
1998-08-29 4:00 ` mathog
1998-09-01 4:00 ` Greg Thomas
1998-08-28 4:00 ` Monty Brandenberg
1998-08-28 4:00 ` George Cornelius
1998-08-29 4:00 ` Gregg E Economou
1998-09-05 4:00 ` Peter da Silva
1998-08-28 4:00 ` Bob Koehler
1998-09-05 4:00 ` Peter da Silva
1998-09-08 4:00 ` Carl Perkins
1998-08-31 4:00 ` Boris
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox