From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 1 03:50:19 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B619316A539 for ; Sat, 1 Jul 2006 03:50:19 +0000 (UTC) (envelope-from dan@dan.emsphone.com) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id 371F044572 for ; Sat, 1 Jul 2006 03:21:41 +0000 (GMT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.13.1/8.13.4) id k613Ldrt078071; Fri, 30 Jun 2006 22:21:39 -0500 (CDT) (envelope-from dan) Date: Fri, 30 Jun 2006 22:21:39 -0500 From: Dan Nelson To: Jean-Marc Lienher Message-ID: <20060701032139.GB4915@dan.emsphone.com> References: <000f01c69ca5$02fa8ff0$6400a8c0@s2003> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <000f01c69ca5$02fa8ff0$6400a8c0@s2003> X-OS: FreeBSD 5.5-PRERELEASE X-message-flag: Outlook Error User-Agent: Mutt/1.5.11 Cc: freebsd-hackers@freebsd.org Subject: Re: Alternative compiler toolchain ? X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Jul 2006 03:50:19 -0000 In the last episode (Jul 01), Jean-Marc Lienher said: > After a (too?) quick look at the FreeBSD source code, I've seen that > the GNU compiler toolchain was used to compile the kernel and other > part of the OS. > > I would like to know if there is another compiler toolchain (C > compiler, assembler and linker) which is able to build the i386 > FreeBSD and which is released under the BSD, MIT or any other > non-viral license ? Luckily gcc's license doesn't apply to the executables it generates :) > I've found some other compilers on the web: > http://fabrice.bellard.free.fr/tcc/ (LGPL) tcc is very fast, probably has the most modern C parser of the lot, and might even be able to build world except that the shared binaries it generates aren't able to be loaded by our rtld. It looks like tcc only emits the bare minimum to get Linux to run the executable, and I don't know enough about the ELF format to fill in the blanks. > http://www.cs.princeton.edu/software/lcc/ (Free for personal use) > http://tack.sourceforge.net/ (BSD) > > The last one, ACK (the Minix compiler), is released under a > good license. Does somebody have ever tried to compile FreeBSD > with it ? ACK can't generate executables for any modern system except Solaris, so it would have to have a lot of work done on it to be useful. -- Dan Nelson dnelson@allantgroup.com