From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Cox Subject: Re: Small-C revisited Date: 05 Jun 2002 18:27:59 +0100 Sender: linux-8086-owner@vger.kernel.org Message-ID: <1023298079.2442.6.camel@irongate.swansea.linux.org.uk> References: Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Id: Content-Type: text/plain; charset="us-ascii" To: Ken Martwick Cc: linux-8086@vger.kernel.org On Wed, 2002-06-05 at 04:23, Ken Martwick wrote: > of Small-C to ELKS, progress has been minor. My first > try was to port "as86" to ELKS. After a "chmem" problem > that I still don't understand, the assembler is to the > point of starting and just hanging. Even if it could be Our current binary format is the minix one and has the same design flaw. Minix doesn't support swapping so allocates a program data as Data Stack And brk()/malloc etc expand into pre-reserved space. Chmem adjusts that space. What probably should happen since we do have swap is that we allocate Stack (size configured at compile/link time) Data We can then actually expand the program space if need be. On v7 swap is activated at boot up and they basically did if(room to just grow a bit) grow_it() else swap_it_out() and the swap back in would sort out a suitable sized chunk.