From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,41755819187303d3 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 1991-09-26 16:21:38 PST Path: gmdzi!unido!mcsun!uunet!psinntp!eco.twg.com!eco.twg.com!reece From: reece@eco.twg.com (Reece R. Pollack) Newsgroups: comp.sys.dec Subject: Re: PDP clone Keywords: PDP Message-ID: <1991Sep24.213956.1757@eco.twg.com> Date: 24 Sep 91 21:39:56 GMT References: <1623@sys.uea.ac.uk> Sender: reece@eco.twg.com (Reece R. Pollack) Reply-To: reece@eco.twg.com (Reece R. Pollack) Organization: The Wollongong Group (East Coast Operations) Nntp-Posting-Host: eco.twg.com In article <1623@sys.uea.ac.uk>, map9171@sys.uea.ac.uk (J. Noad) writes: |>Hi, |>Ive come to have a General Robotics Nebula which |>is a PDP 11/02. Ive got RT-11 v4 of sorts but not the |>complete system ie no HELP, FORTRAN, SYSGEN *.MAC |>Can anyone suggest a source of RT-11 on 8" RX02 disk? |>[The disc drives are from a former CP/M machine - a Midas] |> |>Ive also got the Whitesmith C compiler for the beast (circa 1980) |>and would appreciate finding out how to use it - it doesnt seem |>to even attempt to approach K&R - not even printf();!!! |> |>Summary of whats it is: |>LSI-11/02 processor, 64Kbyte memory, DEC quad serial card for console |>printer modem and not used, RX02 drive controller, bus terminator + boot |>+ clock. |> |>ttfn, james |>[ map9171@sys.uea.ac.uk ] |> I can't help you with RT-11, as I haven't even seen it since I was in college. However, I have worked with Whitesmiths C from that era, and I'll pass on what lore I can recall. Whitesmiths C differs from K&R C in two fundamental ways. The first is related to external variable definitions. The basic rule is to completely ignore the presence or absence of the "extern" keyword. If a variable which is described outside of a function is *initialized*, then the description is a definition, otherwise it is a declaration. Thus the following are all definitions: int x = 0; extern int y = 0; extern union { int i; float f; } u = 0; While all of the following are declarations: int x; extern int y; extern union { int i; float f; }; The second major difference is in the function libraries. The rules here are, "If it has the same name as a K&R function, it does something different," and, "If it does the same function as a K&R function, it has a different name." For example, "printf" is called "putfmt", and the format characters are different (like "%i" instead of "%d"). More good examples are the string functions: "strlen" is "lenstr", while "strcpy" is called "cpystr". Have fun -- the company I was working for got tired of retraining programmers, so we rewrote both the compiler and the run-time library (we had sources). You might be better off with the DECUS PDP-11 C compiler, if it still exists. -- Reece R. Pollack Senior Software Engineer The Wollongong Group, Inc.