From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,2afd440a210c7fb0 X-Google-Attributes: gidf7344,public X-Google-Thread: 1014db,6bdc5c27a0dec527 X-Google-Attributes: gid1014db,public X-Google-Thread: 1164f8,df8a3dc583bf1f5f X-Google-Attributes: gid1164f8,public From: shoppa@alph02.triumf.ca (Tim Shoppa) Subject: Re: Compaq prefers Alpha over Merced! BUT OF COURSE, ALPHA * Date: 1998/09/09 Message-ID: <6t4h4d$mo4$1@nntp.ucs.ubc.ca>#1/1 X-Deja-AN: 389210791 References: <0095000017115526000002L062*@MHS> <6t24vj$kep$1@Starbase.NeoSoft.COM> <6t4dca$k0h$1@nntp.ucs.ubc.ca> <6t4cui$hfu@espresso.cafe.net> Organization: TRIUMF, Canada's National Meson Facility Newsgroups: comp.os.vms,comp.sys.dec,comp.lang.c In article <6t4cui$hfu@espresso.cafe.net>, Kaz Kylheku wrote: >In article <6t4dca$k0h$1@nntp.ucs.ubc.ca>, >Tim Shoppa 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.