Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Mar 2002 11:28:11 -0500 (EST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        Peter Wemm <peter@wemm.org>
Cc:        freebsd-ia64@freebsd.org
Subject:   RE: self hosting!
Message-ID:  <XFMail.20020321112811.jhb@FreeBSD.org>
In-Reply-To: <20020321135107.BB36A380A@overcee.wemm.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 21-Mar-2002 Peter Wemm wrote:
> I finally cracked the problem that was stalling self-hosting.  The kernel
> was limiting the userland register stack to 32K (!!).  gcc-3.1's c-parse.c
> and expr.c consume around a megabyte of register stack to compile.
> 
> Anyway, a natively ./configure'd gcc:
> 
> ia64# more bar.c
> main()
> {
>         printf("Hello, World!\n");
> }
> ia64# gcc -o bar bar.c
> ia64# ./bar
> Hello, World!
> ia64# gcc -v
> Reading specs from /usr/local/lib/gcc-lib/ia64-unknown-freebsd5.0/3.1/specs
> Configured with: ../configure --enable-languages=c --disable-shared
> --disable-nls --disable-intl
> Thread model: posix
> gcc version 3.1 20020310 (prerelease)
> ia64# file bar
> bar: ELF 64-bit LSB executable, IA-64 (Intel 64 bit architecture) version 1
> (FreeBSD), dynamically linked (uses shared libs), not stripped
> ia64# ldd ./bar
> ./bar:
>         libc.so.5 => /usr/lib/libc.so.5 (0x600000004004a000)
> 
> Shared libs and all!
> 
> (This compiled itself on an SMP ia64 box as well, so the SMP support looks
> like it is getting there too.  We still need "fast" interrupts so that
> the clock stats work properly, but that's no big deal yet).

You don't need them to be fast so much as to be synchronous.  (INTR_FAST is a
bad misnomer).  Just have the clock interrupt handler call
statclock/hardclock/statclock_process/hardclock_process directly.

-- 

John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ia64" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.20020321112811.jhb>