Yes, it's all MACRO-11 for the actual stack and basic tools. The web
server is the first piece I've written in an HLL here. And it was much
because I wanted to write the HLL interface routines, and needed a small
pet project to do to test the interface.
Using TCP/IP from BASIC+2 in RSX is ridicously easy. You just INPUT and
PRINT as usual, but to a file you opened that is the TCP connection.
> I have somewhere a Whitesmiths C cross compiler on 5.25" floppies that runs
> on an ibm pc under dos, translating to pdp11 macro source. Leftover from a
> mid eighties project. Don't know about licensing issues now, but you
> would be
> welcome to a copy of the disks and docs if you ever need them. I think
> gcc has a port to pdp11 as well. That's if you ever need a decent language
> to program in :-)...
Thanks. I already know about the gcc implementation, having helped some
on that many years ago. However, it's more of a curiosity than anything
useful, as you have absolutely no libraries to go with it. And you can
forget about glibc. :-)
I know that Whitesmith did a C compiler for the PDP-11, along with
libraries and all, but I have never tried it.
I do have DECUS C, which I have modified over the years, and that is
usable but perhaps a little restricted for some people (pure K&R, and
some additional restrictions).
I also happen to have the DEC PDP-11 C compiler for RSX, which is pretty
much a full blown ANSI C. Not overly impressed by the code it generates,
but it's a rather nice compiler over all (very little, if any
optimization done by the compiler). And yes, I have also been working on
the TCP/IP interface to that. I have a somewhat usable version, but I'm
fighting with myself about if I should go with my original idea, in
which where you actually open the tcp socket and get a file handle, to
which you can then do printf() and so on, or if I should implement the
Unix style socket interface.
The Unix style sockets is something people know, which in a way makes it
easier for people to write code, but on the other hand, it's a stupid
interface and somewhat inefficient.
The biggest problem with my current interface is that C have this
idiotic idea that a file handle can only be used for input *or* output,
not both. And the PDP-11 C libraries enforce this, so I have a small
routine that resets the library opinion in which direction I/O is going,
which I need to use whenever I "change" the direction of I/O.
C is a decent language for some things, but not all. It's very nice for
handling structured data of all kinds and forms, but it's horrible to
process strings. BASIC on the other hand is very nice to do string
processing in, and it's pretty fast to do development. And if you
haven't looked at BASIC+2 or VMS BASIC, you'd be surprised about the
language. It's pretty far from the BASIC of various Micros...
Johnny
--
Johnny Billquist || "I'm on a bus
|| on a psychedelic trip
email:
b...@softjar.se || Reading murder books
pdp is alive! || tryin' to stay hip" - B. Idol