From owner-freebsd-ia64 Thu Mar 21 8:28:14 2002 Delivered-To: freebsd-ia64@freebsd.org Received: from mail11.speakeasy.net (mail11.speakeasy.net [216.254.0.211]) by hub.freebsd.org (Postfix) with ESMTP id 4C9A337B404 for ; Thu, 21 Mar 2002 08:28:12 -0800 (PST) Received: (qmail 3391 invoked from network); 21 Mar 2002 16:28:10 -0000 Received: from unknown (HELO server.baldwin.cx) ([216.27.160.63]) (envelope-sender ) by mail11.speakeasy.net (qmail-ldap-1.03) with DES-CBC3-SHA encrypted SMTP for ; 21 Mar 2002 16:28:10 -0000 Received: from laptop.baldwin.cx (gw1.twc.weather.com [216.133.140.1]) by server.baldwin.cx (8.11.6/8.11.6) with ESMTP id g2LGSjv66495; Thu, 21 Mar 2002 11:28:45 -0500 (EST) (envelope-from jhb@FreeBSD.org) Message-ID: X-Mailer: XFMail 1.5.2 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <20020321135107.BB36A380A@overcee.wemm.org> Date: Thu, 21 Mar 2002 11:28:11 -0500 (EST) From: John Baldwin To: Peter Wemm Subject: RE: self hosting! Cc: freebsd-ia64@freebsd.org Sender: owner-freebsd-ia64@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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 <>< 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