From: reece@eco.twg.com (Reece R. Pollack)
Subject: Re: PDP clone
Date: 24 Sep 91 21:39:56 GMT [thread overview]
Message-ID: <1991Sep24.213956.1757@eco.twg.com> (raw)
In-Reply-To: 1623@sys.uea.ac.uk
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.
next prev parent reply other threads:[~1991-09-24 21:39 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
1991-09-19 20:16 PDP clone J. Noad
1991-09-23 16:11 ` AJ Casamento
1991-09-24 21:39 ` Reece R. Pollack [this message]
1991-09-26 8:01 ` AJ Casamento
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