Switch branches/tags
Nothing to show
Find file History
warren.toomey
warren.toomey I was compiling a couple of files twice.
git-svn-id: http://unix-jun72.googlecode.com/svn/trunk@151 44b2186c-a14b-0410-8c95-595313601b93
Latest commit 9a957c0 May 6, 2008
Permalink
..
Failed to load latest commit information.
Readme Updated doco to describe v1mak. May 5, 2008
c00.c Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
c01.c Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
c02.c Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
c03.c Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
c0t.s Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
c10.c Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
c11.c Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
c1t.s Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
cc.c Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
cctab.s Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
cvopt.c Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
efftab.s Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
fptab.s Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
mak I was compiling a couple of files twice. May 6, 2008
regtab.s Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
sptab.s Added the last1120c C compiler. It does not yet run on the V1 kernel,… May 5, 2008
v1mak I was compiling a couple of files twice. May 6, 2008

Readme

This directory contains the last1120c C compiler, as described by Dennis
Ritchie on his web page http://cm.bell-labs.com/cm/cs/who/dmr/primevalC.html

You can use the Apout emulator and the C compiler from the s2 tape to
recompile the last1120c compiler. After installing the new compiler
binaries, last1120c can recompile itself.

Here are the instructions. First, compile and install the Apout emulator.
Make sure that you turned -DEMUV1 on in the Makefile.

Unpack the V1 executables from the s2 tape and unpack them in a suitable
area, e.g /usr/local/src/V1. Set the environment variable APOUT_ROOT to
this directory name.

Change into the last1120c directory, and edit the shell script mak
so that it reflects the value of APOUT_ROOT that you have chosen.
Then simply run the mak shell script natively. This will build the the
front-end command, cc, and the two passes of the C compiler: c0 and c1.

If you want, you can now move c0 and c1 into $APOUT_ROOT/usr/lib, replacing
the original c0 and c1, and then use the shell script mak again to rebuild
c0 and c1 using themselves. Similarly, you can replace $APOUT_ROOT/bin/cc
with the cc created here.

The C compiler can now mostly rebuild itself on the V1 kernel, except the c1
pass which doesn't work yet. The v1mak shell script can be run on V1 to
rebuild everything from source.