From owner-freebsd-hackers@FreeBSD.ORG Sat Jul 1 13:17:06 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 D2FF316A551 for ; Sat, 1 Jul 2006 13:17:06 +0000 (UTC) (envelope-from joseph.koshy@gmail.com) Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.171]) by mx1.FreeBSD.org (Postfix) with ESMTP id 11CCC44780 for ; Sat, 1 Jul 2006 12:54:19 +0000 (GMT) (envelope-from joseph.koshy@gmail.com) Received: by ug-out-1314.google.com with SMTP id e2so475523ugf for ; Sat, 01 Jul 2006 05:54:18 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=qpQ+TEnqusBhyYpnQGhF0WZpbCm4EDXEbPpCPW6P8Zr3D2sJ2PWAtnXfVnfDz5UFWnCjjk47mSz/NnKTtx2ReJtriQrcsrr7BUo/JiCKEZYNJb96oOGB13eXrtV2RdL86oiEVefOcXlBVyeRX52uMZ01HvnMqyyUF/4ZmHJ5H5I= Received: by 10.78.160.2 with SMTP id i2mr417813hue; Sat, 01 Jul 2006 05:54:18 -0700 (PDT) Received: by 10.78.50.15 with HTTP; Sat, 1 Jul 2006 05:54:18 -0700 (PDT) Message-ID: <84dead720607010554w3ecc8618xb8ede50ac3fba29d@mail.gmail.com> Date: Sat, 1 Jul 2006 18:24:18 +0530 From: "Joseph Koshy" To: "Dan Nelson" In-Reply-To: <20060701032139.GB4915@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <000f01c69ca5$02fa8ff0$6400a8c0@s2003> <20060701032139.GB4915@dan.emsphone.com> Cc: freebsd-hackers@freebsd.org, Jean-Marc Lienher 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 13:17:06 -0000 jml> I've found some other compilers on the web: jml> http://fabrice.bellard.free.fr/tcc/ (LGPL) dn> tcc is very fast, probably has the most modern C parser of dn> the lot, and might even be able to build world except that dn> the shared binaries it generates aren't able to be loaded dn> by our rtld. It looks like tcc only emits the bare dn> minimum to get Linux to run the executable, and I don't dn> know enough about the ELF format to fill in the blanks. Other bugs with tcc on FreeBSD: - tcc generated executables are missing an entry in their ELF program-header table and so do not execute directly. You can work around this by using the base system ld for the final link step. - Someone reported that a few of our headers don't compile with tcc. I haven't tracked down whether this is on account of an unsupported Gcc'ism in the header or whether this is a bug in tcc. -- FreeBSD Volunteer, http://people.freebsd.org/~jkoshy