Thread View: net.lang.c
1 messages
1 total messages
Started by Henry Spencer
Sun, 09 Nov 1986 10:08
Re: How to do it ?
Author: Henry Spencer
Date: Sun, 09 Nov 1986 10:08
Date: Sun, 09 Nov 1986 10:08
28 lines
1996 bytes
1996 bytes
> I would like to know if someone has used (or heard about the use of) high
> level languages (C, Pascal, Ada, ..) or tools to generate PDP-11 code.
> I think there could be various ways to do it, including :
> - a cross-compiler running on VAX/VMS or PDP/RSX ...
Have you considered a native compiler running on PDP11 Unix? Since that's
what my system is, and how all C on it is compiled, I can guarantee it
works. It's a much more pleasant working environment than VMS or RSX, too...
If you don't want to buy a Unix-capable PDP11 just for this job (an attitude
I can understand, since in other respects it's not a good choice for a Unix
machine any more), I believe the compiler and such should run without much
trouble in compatibility mode under 4BSD. The compiler might run in native
mode, in fact, although I would wonder about 16-bit assumptions it might
make. The assembler was written in assembler, so unless you can find a
more modern version (I know of one, but it's not widely available), you
will need compatibility mode for that.
> ...of course a compiler with a run-time library would not work in
> this case because the "system" is some specialized processor based on a
> PDP-11 chip...
We used to routinely compile code to be downloaded to a smaller, non-Unix,
PDP11. This required a different C library (or great care in using the
standard one) plus a different runtime-startup routine, but it worked fine.
--
Henry Spencer @ U of Toronto Zoology
{allegra,ihnp4,decvax,pyramid}!utzoo!henry
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads