From mboxrd@z Thu Jan 1 00:00:00 1970 From: wkt@tuhs.org (Warren Toomey) Date: Mon, 5 May 2008 18:02:49 +1000 Subject: [Unix-jun72] C compiler: it works! In-Reply-To: <20080505075017.GA81081@minnie.tuhs.org> References: <20080505060824.GA78841@minnie.tuhs.org> <20080505071212.GA80277@minnie.tuhs.org> <20080505075017.GA81081@minnie.tuhs.org> Message-ID: <20080505080249.GB81081@minnie.tuhs.org> On Mon, May 05, 2008 at 05:50:17PM +1000, Warren Toomey wrote: > Um, just an observation: u0.s defines: > > core = orig+40000 / specifies beginning of user's core > ecore = core+20000 / specifies end of user's core (4096 words) > > so a user program has 020000 bytes of space; but size /usr/lib/c0 gives: > > 023326+03574+06640=035762, and 035762 >> 020000. > > Is the value of ecore arbitrary? Apparently it is. I just patched u0.s to have ecore = core+35764, and the C compiler works! i.e. it compiles a trivial C program. Later on after dinner, I'll try to get the compiler to recompile itself. We still need to check the effects of ecore = core+35764, just in case. Cheers, Warren